tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/wip head: a76254f60dc69826643c45a19418b3e4c67d68f4 commit: 8e0c3933252fff31aaf97b37f660b1a3107debd2 [6/7] lockdep: Only trace IRQ edges config: nds32-allyesconfig (attached as .config) compiler: nds32le-linux-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 8e0c3933252fff31aaf97b37f660b1a3107debd2 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/asm-generic/bitops.h:14, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:29, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/rculist.h:10, from include/linux/pid.h:5, from include/linux/sched.h:14, from arch/nds32/kernel/asm-offsets.c:4: include/linux/spinlock_api_smp.h: In function '__raw_spin_lock_irq': >> include/linux/irqflags.h:177:31: error: implicit declaration of function 'arch_irqs_disabled'; did you mean 'raw_irqs_disabled'? [-Werror=implicit-function-declaration] 177 | #define raw_irqs_disabled() (arch_irqs_disabled()) | ^~~~~~~~~~~~~~~~~~ include/linux/irqflags.h:194:23: note: in expansion of macro 'raw_irqs_disabled' 194 | bool was_disabled = raw_irqs_disabled();\ | ^~~~~~~~~~~~~~~~~ include/linux/spinlock_api_smp.h:126:2: note: in expansion of macro 'local_irq_disable' 126 | local_irq_disable(); | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:117: arch/nds32/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1203: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:185: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=8e0c3933252fff31aaf97b37f660b1a3107debd2 git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git git fetch --no-tags peterz-queue locking/wip git checkout 8e0c3933252fff31aaf97b37f660b1a3107debd2 vim +177 include/linux/irqflags.h 81d68a96a398448 Steven Rostedt 2008-05-12 151 df9ee29270c11db David Howells 2010-10-07 152 /* df9ee29270c11db David Howells 2010-10-07 153 * Wrap the arch provided IRQ routines to provide appropriate checks. df9ee29270c11db David Howells 2010-10-07 154 */ df9ee29270c11db David Howells 2010-10-07 155 #define raw_local_irq_disable() arch_local_irq_disable() df9ee29270c11db David Howells 2010-10-07 156 #define raw_local_irq_enable() arch_local_irq_enable() df9ee29270c11db David Howells 2010-10-07 157 #define raw_local_irq_save(flags) \ df9ee29270c11db David Howells 2010-10-07 158 do { \ df9ee29270c11db David Howells 2010-10-07 159 typecheck(unsigned long, flags); \ df9ee29270c11db David Howells 2010-10-07 160 flags = arch_local_irq_save(); \ df9ee29270c11db David Howells 2010-10-07 161 } while (0) df9ee29270c11db David Howells 2010-10-07 162 #define raw_local_irq_restore(flags) \ df9ee29270c11db David Howells 2010-10-07 163 do { \ df9ee29270c11db David Howells 2010-10-07 164 typecheck(unsigned long, flags); \ df9ee29270c11db David Howells 2010-10-07 165 arch_local_irq_restore(flags); \ df9ee29270c11db David Howells 2010-10-07 166 } while (0) df9ee29270c11db David Howells 2010-10-07 167 #define raw_local_save_flags(flags) \ df9ee29270c11db David Howells 2010-10-07 168 do { \ df9ee29270c11db David Howells 2010-10-07 169 typecheck(unsigned long, flags); \ df9ee29270c11db David Howells 2010-10-07 170 flags = arch_local_save_flags(); \ df9ee29270c11db David Howells 2010-10-07 171 } while (0) df9ee29270c11db David Howells 2010-10-07 172 #define raw_irqs_disabled_flags(flags) \ df9ee29270c11db David Howells 2010-10-07 173 ({ \ df9ee29270c11db David Howells 2010-10-07 174 typecheck(unsigned long, flags); \ df9ee29270c11db David Howells 2010-10-07 175 arch_irqs_disabled_flags(flags); \ df9ee29270c11db David Howells 2010-10-07 176 }) df9ee29270c11db David Howells 2010-10-07 @177 #define raw_irqs_disabled() (arch_irqs_disabled()) df9ee29270c11db David Howells 2010-10-07 178 #define raw_safe_halt() arch_safe_halt() de30a2b355ea853 Ingo Molnar 2006-07-03 179 :::::: The code at line 177 was first introduced by commit :::::: df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Fix IRQ flag handling naming :::::: TO: David Howells :::::: CC: David Howells --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org