Re: Do not build vmstat_refresh if there is no procfs support

2016-05-16 Thread kbuild test robot
Hi,

[auto build test ERROR on next-20160511]
[cannot apply to v4.6-rc7 v4.6-rc6 v4.6-rc5 v4.6]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Christoph-Lameter/Do-not-build-vmstat_refresh-if-there-is-no-procfs-support/20160511-233405
config: arm64-allnoconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All error/warnings (new ones prefixed by >>):

   mm/vmstat.c: In function 'vmstat_update':
>> mm/vmstat.c:1436:45: error: 'vmstat_wq' undeclared (first use in this 
>> function)
  queue_delayed_work_on(smp_processor_id(), vmstat_wq,
^
   mm/vmstat.c:1436:45: note: each undeclared identifier is reported only once 
for each function it appears in
   In file included from include/asm-generic/percpu.h:6:0,
from arch/arm64/include/asm/percpu.h:276,
from include/linux/percpu.h:12,
from include/linux/percpu-rwsem.h:6,
from include/linux/fs.h:30,
from mm/vmstat.c:12:
>> mm/vmstat.c:1437:19: error: 'vmstat_work' undeclared (first use in this 
>> function)
this_cpu_ptr(_work),
  ^
   include/linux/percpu-defs.h:206:47: note: in definition of macro 
'__verify_pcpu_ptr'
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
  ^
   include/linux/percpu-defs.h:239:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
  ^
>> mm/vmstat.c:1437:5: note: in expansion of macro 'this_cpu_ptr'
this_cpu_ptr(_work),
^
   In file included from include/linux/fs.h:32:0,
from mm/vmstat.c:12:
   mm/vmstat.c: In function 'quiet_vmstat':
   mm/vmstat.c:1480:42: error: 'vmstat_work' undeclared (first use in this 
function)
 if (!delayed_work_pending(this_cpu_ptr(_work)))
 ^
   include/linux/workqueue.h:26:51: note: in definition of macro 
'work_data_bits'
#define work_data_bits(work) ((unsigned long *)(&(work)->data))
  ^
   include/linux/workqueue.h:271:2: note: in expansion of macro 'work_pending'
 work_pending(&(w)->work)
 ^
>> mm/vmstat.c:1480:7: note: in expansion of macro 'delayed_work_pending'
 if (!delayed_work_pending(this_cpu_ptr(_work)))
  ^
   include/linux/percpu-defs.h:228:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(ptr);  \
 ^
   include/linux/percpu-defs.h:239:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
  ^
   mm/vmstat.c:1480:28: note: in expansion of macro 'this_cpu_ptr'
 if (!delayed_work_pending(this_cpu_ptr(_work)))
   ^
   In file included from include/asm-generic/percpu.h:6:0,
from arch/arm64/include/asm/percpu.h:276,
from include/linux/percpu.h:12,
from include/linux/percpu-rwsem.h:6,
from include/linux/fs.h:30,
from mm/vmstat.c:12:
   mm/vmstat.c: In function 'vmstat_shepherd':
   mm/vmstat.c:1512:38: error: 'vmstat_work' undeclared (first use in this 
function)
  struct delayed_work *dw = _cpu(vmstat_work, cpu);
 ^
   include/linux/percpu-defs.h:206:47: note: in definition of macro 
'__verify_pcpu_ptr'
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
  ^
   include/linux/percpu-defs.h:256:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^
>> mm/vmstat.c:1512:30: note: in expansion of macro 'per_cpu'
  struct delayed_work *dw = _cpu(vmstat_work, cpu);
 ^
   mm/vmstat.c:1515:32: error: 'vmstat_wq' undeclared (first use in this 
function)
queue_delayed_work_on(cpu, vmstat_wq, dw, 0);
   ^
   In file included from include/linux/fs.h:32:0,
from mm/vmstat.c:12:
   mm/vmstat.c: In function 'start_shepherd_timer':
   mm/vmstat.c:1528:37: error: 'vmstat_work' undeclared (first use in this 
function)
  INIT_DEFERRABLE_WORK(per_cpu_ptr(_work, cpu),
^
   include/linux/workqueue.h:216:16: note: in definition of macro '__INIT_WORK'
  __init_work((_work), _onstack);\
   ^
   

Re: Do not build vmstat_refresh if there is no procfs support

2016-05-16 Thread kbuild test robot
Hi,

[auto build test ERROR on next-20160511]
[cannot apply to v4.6-rc7 v4.6-rc6 v4.6-rc5 v4.6]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Christoph-Lameter/Do-not-build-vmstat_refresh-if-there-is-no-procfs-support/20160511-233405
config: arm64-allnoconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All error/warnings (new ones prefixed by >>):

   mm/vmstat.c: In function 'vmstat_update':
>> mm/vmstat.c:1436:45: error: 'vmstat_wq' undeclared (first use in this 
>> function)
  queue_delayed_work_on(smp_processor_id(), vmstat_wq,
^
   mm/vmstat.c:1436:45: note: each undeclared identifier is reported only once 
for each function it appears in
   In file included from include/asm-generic/percpu.h:6:0,
from arch/arm64/include/asm/percpu.h:276,
from include/linux/percpu.h:12,
from include/linux/percpu-rwsem.h:6,
from include/linux/fs.h:30,
from mm/vmstat.c:12:
>> mm/vmstat.c:1437:19: error: 'vmstat_work' undeclared (first use in this 
>> function)
this_cpu_ptr(_work),
  ^
   include/linux/percpu-defs.h:206:47: note: in definition of macro 
'__verify_pcpu_ptr'
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
  ^
   include/linux/percpu-defs.h:239:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
  ^
>> mm/vmstat.c:1437:5: note: in expansion of macro 'this_cpu_ptr'
this_cpu_ptr(_work),
^
   In file included from include/linux/fs.h:32:0,
from mm/vmstat.c:12:
   mm/vmstat.c: In function 'quiet_vmstat':
   mm/vmstat.c:1480:42: error: 'vmstat_work' undeclared (first use in this 
function)
 if (!delayed_work_pending(this_cpu_ptr(_work)))
 ^
   include/linux/workqueue.h:26:51: note: in definition of macro 
'work_data_bits'
#define work_data_bits(work) ((unsigned long *)(&(work)->data))
  ^
   include/linux/workqueue.h:271:2: note: in expansion of macro 'work_pending'
 work_pending(&(w)->work)
 ^
>> mm/vmstat.c:1480:7: note: in expansion of macro 'delayed_work_pending'
 if (!delayed_work_pending(this_cpu_ptr(_work)))
  ^
   include/linux/percpu-defs.h:228:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(ptr);  \
 ^
   include/linux/percpu-defs.h:239:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
  ^
   mm/vmstat.c:1480:28: note: in expansion of macro 'this_cpu_ptr'
 if (!delayed_work_pending(this_cpu_ptr(_work)))
   ^
   In file included from include/asm-generic/percpu.h:6:0,
from arch/arm64/include/asm/percpu.h:276,
from include/linux/percpu.h:12,
from include/linux/percpu-rwsem.h:6,
from include/linux/fs.h:30,
from mm/vmstat.c:12:
   mm/vmstat.c: In function 'vmstat_shepherd':
   mm/vmstat.c:1512:38: error: 'vmstat_work' undeclared (first use in this 
function)
  struct delayed_work *dw = _cpu(vmstat_work, cpu);
 ^
   include/linux/percpu-defs.h:206:47: note: in definition of macro 
'__verify_pcpu_ptr'
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
  ^
   include/linux/percpu-defs.h:256:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^
>> mm/vmstat.c:1512:30: note: in expansion of macro 'per_cpu'
  struct delayed_work *dw = _cpu(vmstat_work, cpu);
 ^
   mm/vmstat.c:1515:32: error: 'vmstat_wq' undeclared (first use in this 
function)
queue_delayed_work_on(cpu, vmstat_wq, dw, 0);
   ^
   In file included from include/linux/fs.h:32:0,
from mm/vmstat.c:12:
   mm/vmstat.c: In function 'start_shepherd_timer':
   mm/vmstat.c:1528:37: error: 'vmstat_work' undeclared (first use in this 
function)
  INIT_DEFERRABLE_WORK(per_cpu_ptr(_work, cpu),
^
   include/linux/workqueue.h:216:16: note: in definition of macro '__INIT_WORK'
  __init_work((_work), _onstack);\
   ^