tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master head: 532679914f337fc8b4e4a9d9e003accbbacabc45 commit: 04048bed6bc498bd775ff1ff7485177a82840d39 [18/30] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables config: arm-defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 04048bed6bc498bd775ff1ff7485177a82840d39 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): In file included from include/linux/irqflags.h:17, from arch/arm/include/asm/bitops.h:28, from include/linux/bitops.h:29, from include/linux/kernel.h:12, from include/asm-generic/bug.h:19, from arch/arm/include/asm/bug.h:60, from include/linux/bug.h:5, from include/linux/page-flags.h:10, from kernel/bounds.c:10: arch/arm/include/asm/percpu.h: In function '__my_cpu_offset': >> arch/arm/include/asm/percpu.h:29:34: error: 'current_stack_pointer' undeclared (first use in this function); did you mean 'user_stack_pointer'? 29 | : "Q" (*(const unsigned long *)current_stack_pointer)); | ^~~~~~~~~~~~~~~~~~~~~ | user_stack_pointer arch/arm/include/asm/percpu.h:29:34: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [scripts/Makefile.build:100: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1149: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:180: sub-make] Error 2 vim +29 arch/arm/include/asm/percpu.h 14318efb322e2f Rob Herring 2012-11-29 18 14318efb322e2f Rob Herring 2012-11-29 19 static inline unsigned long __my_cpu_offset(void) 14318efb322e2f Rob Herring 2012-11-29 20 { 14318efb322e2f Rob Herring 2012-11-29 21 unsigned long off; 509eb76ebf9771 Will Deacon 2013-06-05 22 509eb76ebf9771 Will Deacon 2013-06-05 23 /* 509eb76ebf9771 Will Deacon 2013-06-05 24 * Read TPIDRPRW. 509eb76ebf9771 Will Deacon 2013-06-05 25 * We want to allow caching the value, so avoid using volatile and 509eb76ebf9771 Will Deacon 2013-06-05 26 * instead use a fake stack read to hazard against barrier(). 509eb76ebf9771 Will Deacon 2013-06-05 27 */ ccbd2da50db211 Mark Charlebois 2014-09-27 28 asm("mrc p15, 0, %0, c13, c0, 4" : "=r" (off) ccbd2da50db211 Mark Charlebois 2014-09-27 @29 : "Q" (*(const unsigned long *)current_stack_pointer)); 509eb76ebf9771 Will Deacon 2013-06-05 30 14318efb322e2f Rob Herring 2012-11-29 31 return off; 14318efb322e2f Rob Herring 2012-11-29 32 } 14318efb322e2f Rob Herring 2012-11-29 33 #define __my_cpu_offset __my_cpu_offset() 14318efb322e2f Rob Herring 2012-11-29 34 #else 14318efb322e2f Rob Herring 2012-11-29 35 #define set_my_cpu_offset(x) do {} while(0) 14318efb322e2f Rob Herring 2012-11-29 36 :::::: The code at line 29 was first introduced by commit :::::: ccbd2da50db2111f6d055e3201c39a37e542ceb6 ARM: 8174/1: Use global stack register variable for percpu :::::: TO: Mark Charlebois :::::: CC: Russell King --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org