[rcu:dev.2016.05.18a 28/28] kernel/rcu/tree_plugin.h:1168:2: error: implicit declaration of function 'for_each_leaf_node_cpu_bit'

From: kbuild test robot
Date: Sat May 21 2016 - 19:12:23 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2016.05.18a
head: a396e98dae720a48c49795892d23ca17c87319b0
commit: a396e98dae720a48c49795892d23ca17c87319b0 [28/28] rcu: Correctly handle sparse possible CPUs
config: x86_64-randconfig-n0-05220622 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout a396e98dae720a48c49795892d23ca17c87319b0
# save the attached .config to linux build tree
make ARCH=x86_64

Note: the rcu/dev.2016.05.18a HEAD a396e98dae720a48c49795892d23ca17c87319b0 builds fine.
It only hurts bisectibility.

All errors (new ones prefixed by >>):

In file included from kernel/rcu/tree.c:4209:0:
kernel/rcu/tree_plugin.h: In function 'rcu_boost_kthread_setaffinity':
>> kernel/rcu/tree_plugin.h:1168:2: error: implicit declaration of function 'for_each_leaf_node_cpu_bit' [-Werror=implicit-function-declaration]
for_each_leaf_node_cpu_bit(rnp, cpu, bit)
^~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1169:3: error: expected ';' before 'if'
if ((mask & bit) && cpu != outgoingcpu)
^~
kernel/rcu/tree_plugin.h:1159:16: warning: unused variable 'mask' [-Wunused-variable]
unsigned long mask = rcu_rnp_online_cpus(rnp);
^~~~
cc1: some warnings being treated as errors

vim +/for_each_leaf_node_cpu_bit +1168 kernel/rcu/tree_plugin.h

1162 int cpu;
1163
1164 if (!t)
1165 return;
1166 if (!zalloc_cpumask_var(&cm, GFP_KERNEL))
1167 return;
> 1168 for_each_leaf_node_cpu_bit(rnp, cpu, bit)
> 1169 if ((mask & bit) && cpu != outgoingcpu)
1170 cpumask_set_cpu(cpu, cm);
1171 if (cpumask_weight(cm) == 0)
1172 cpumask_setall(cm);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data