[vhost:linux-next 4/5] kernel/rcu/tiny.c:138:22: error: 'rcu_data' undeclared
From: kbuild test robot <hidden>
Date: 2019-07-22 18:00:38
Also in:
kvm, virtualization
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/mst/vhost.git linux-next head: 25da3c2b439666602852820e3231349085682e1a commit: 4cfd64ce2ad979cbd9a97e1500533d2f5f1355b8 [4/5] rcu: add count of outstanding callbacks config: i386-allnoconfig (attached as .config) compiler: gcc-7 (Debian 7.4.0-10) 7.4.0 reproduce: git checkout 4cfd64ce2ad979cbd9a97e1500533d2f5f1355b8 # save the attached .config to linux build tree make ARCH=i386 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <redacted> All error/warnings (new ones prefixed by >>): In file included from include/asm-generic/percpu.h:7:0, from arch/x86/include/asm/percpu.h:556, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:78, from include/linux/spinlock.h:51, from include/linux/wait.h:9, from include/linux/completion.h:12, from kernel/rcu/tiny.c:12: kernel/rcu/tiny.c: In function 'call_rcu_outstanding':
quoted
kernel/rcu/tiny.c:138:22: error: 'rcu_data' undeclared (first use in this function)
rdp = this_cpu_ptr(&rcu_data);
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~quoted
include/linux/percpu-defs.h:264:47: note: in expansion of macro 'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~quoted
include/linux/percpu-defs.h:265:26: note: in expansion of macro 'per_cpu_ptr'
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~quoted
include/linux/percpu-defs.h:266:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^~~~~~~~~~~quoted
kernel/rcu/tiny.c:138:8: note: in expansion of macro 'this_cpu_ptr'
rdp = this_cpu_ptr(&rcu_data);
^~~~~~~~~~~~
kernel/rcu/tiny.c:138:22: note: each undeclared identifier is reported only once for each function it appears in
rdp = this_cpu_ptr(&rcu_data);
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~quoted
include/linux/percpu-defs.h:264:47: note: in expansion of macro 'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~quoted
include/linux/percpu-defs.h:265:26: note: in expansion of macro 'per_cpu_ptr'
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~quoted
include/linux/percpu-defs.h:266:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^~~~~~~~~~~quoted
kernel/rcu/tiny.c:138:8: note: in expansion of macro 'this_cpu_ptr'
rdp = this_cpu_ptr(&rcu_data);
^~~~~~~~~~~~
vim +/rcu_data +138 kernel/rcu/tiny.c
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation Attachments
- .config.gz [application/gzip] 7283 bytes