Hi Byungchul, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on tip/locking/core] [also build test ERROR on tip/sched/core linus/master v6.2-rc3 next-20230109] [cannot apply to drm-misc/drm-misc-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Byungchul-Park/llist-Move-llist_-head-node-definition-to-types-h/20230109-113638 patch link: https://lore.kernel.org/r/1673235231-30302-6-git-send-email-byungchul.park%40lge.com patch subject: [PATCH RFC v7 05/23] dept: Tie to Lockdep and IRQ tracing config: sh-allmodconfig compiler: sh4-linux-gcc (GCC) 12.1.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 # https://github.com/intel-lab-lkp/linux/commit/d52ddbb5d185fa25322fa0fa0ceb7b54b482021b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Byungchul-Park/llist-Move-llist_-head-node-definition-to-types-h/20230109-113638 git checkout d52ddbb5d185fa25322fa0fa0ceb7b54b482021b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh prepare If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/sh/include/asm/cmpxchg-irq.h:5, from arch/sh/include/asm/cmpxchg.h:20, from arch/sh/include/asm/atomic.h:19, from include/linux/atomic.h:7, from include/asm-generic/bitops/atomic.h:5, from arch/sh/include/asm/bitops.h:23, from include/linux/bitops.h:68, from include/linux/log2.h:12, from kernel/bounds.c:13: arch/sh/include/asm/cmpxchg-irq.h: In function 'xchg_u32': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ include/linux/irqflags.h:237:17: note: in expansion of macro 'raw_local_irq_save' 237 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/cmpxchg-irq.h:11:9: note: in expansion of macro 'local_irq_save' 11 | local_irq_save(flags); | ^~~~~~~~~~~~~~ include/linux/irqflags.h:192:35: note: each undeclared identifier is reported only once for each function it appears in 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ include/linux/irqflags.h:237:17: note: in expansion of macro 'raw_local_irq_save' 237 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/cmpxchg-irq.h:11:9: note: in expansion of macro 'local_irq_save' 11 | local_irq_save(flags); | ^~~~~~~~~~~~~~ arch/sh/include/asm/cmpxchg-irq.h: In function 'xchg_u16': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ include/linux/irqflags.h:237:17: note: in expansion of macro 'raw_local_irq_save' 237 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/cmpxchg-irq.h:22:9: note: in expansion of macro 'local_irq_save' 22 | local_irq_save(flags); | ^~~~~~~~~~~~~~ arch/sh/include/asm/cmpxchg-irq.h: In function 'xchg_u8': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ include/linux/irqflags.h:237:17: note: in expansion of macro 'raw_local_irq_save' 237 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/cmpxchg-irq.h:33:9: note: in expansion of macro 'local_irq_save' 33 | local_irq_save(flags); | ^~~~~~~~~~~~~~ arch/sh/include/asm/cmpxchg-irq.h: In function '__cmpxchg_u32': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ include/linux/irqflags.h:237:17: note: in expansion of macro 'raw_local_irq_save' 237 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/cmpxchg-irq.h:46:9: note: in expansion of macro 'local_irq_save' 46 | local_irq_save(flags); | ^~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_add': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:18:9: note: in expansion of macro 'raw_local_irq_save' 18 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:51:9: note: in expansion of macro 'ATOMIC_OP' 51 | ATOMIC_OP(op, c_op) \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:55:1: note: in expansion of macro 'ATOMIC_OPS' 55 | ATOMIC_OPS(add, +=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_add_return': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:28:9: note: in expansion of macro 'raw_local_irq_save' 28 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:52:9: note: in expansion of macro 'ATOMIC_OP_RETURN' 52 | ATOMIC_OP_RETURN(op, c_op) \ | ^~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:55:1: note: in expansion of macro 'ATOMIC_OPS' 55 | ATOMIC_OPS(add, +=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_fetch_add': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:42:9: note: in expansion of macro 'raw_local_irq_save' 42 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:53:9: note: in expansion of macro 'ATOMIC_FETCH_OP' 53 | ATOMIC_FETCH_OP(op, c_op) | ^~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:55:1: note: in expansion of macro 'ATOMIC_OPS' 55 | ATOMIC_OPS(add, +=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_sub': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:18:9: note: in expansion of macro 'raw_local_irq_save' 18 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:51:9: note: in expansion of macro 'ATOMIC_OP' 51 | ATOMIC_OP(op, c_op) \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:56:1: note: in expansion of macro 'ATOMIC_OPS' 56 | ATOMIC_OPS(sub, -=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_sub_return': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:28:9: note: in expansion of macro 'raw_local_irq_save' 28 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:52:9: note: in expansion of macro 'ATOMIC_OP_RETURN' 52 | ATOMIC_OP_RETURN(op, c_op) \ | ^~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:56:1: note: in expansion of macro 'ATOMIC_OPS' 56 | ATOMIC_OPS(sub, -=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_fetch_sub': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:42:9: note: in expansion of macro 'raw_local_irq_save' 42 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:53:9: note: in expansion of macro 'ATOMIC_FETCH_OP' 53 | ATOMIC_FETCH_OP(op, c_op) | ^~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:56:1: note: in expansion of macro 'ATOMIC_OPS' 56 | ATOMIC_OPS(sub, -=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_and': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:18:9: note: in expansion of macro 'raw_local_irq_save' 18 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:60:9: note: in expansion of macro 'ATOMIC_OP' 60 | ATOMIC_OP(op, c_op) \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:63:1: note: in expansion of macro 'ATOMIC_OPS' 63 | ATOMIC_OPS(and, &=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_fetch_and': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:42:9: note: in expansion of macro 'raw_local_irq_save' 42 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:61:9: note: in expansion of macro 'ATOMIC_FETCH_OP' 61 | ATOMIC_FETCH_OP(op, c_op) | ^~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:63:1: note: in expansion of macro 'ATOMIC_OPS' 63 | ATOMIC_OPS(and, &=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_or': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:18:9: note: in expansion of macro 'raw_local_irq_save' 18 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:60:9: note: in expansion of macro 'ATOMIC_OP' 60 | ATOMIC_OP(op, c_op) \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:64:1: note: in expansion of macro 'ATOMIC_OPS' 64 | ATOMIC_OPS(or, |=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_fetch_or': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:42:9: note: in expansion of macro 'raw_local_irq_save' 42 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:61:9: note: in expansion of macro 'ATOMIC_FETCH_OP' 61 | ATOMIC_FETCH_OP(op, c_op) | ^~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:64:1: note: in expansion of macro 'ATOMIC_OPS' 64 | ATOMIC_OPS(or, |=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_xor': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:18:9: note: in expansion of macro 'raw_local_irq_save' 18 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:60:9: note: in expansion of macro 'ATOMIC_OP' 60 | ATOMIC_OP(op, c_op) \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:65:1: note: in expansion of macro 'ATOMIC_OPS' 65 | ATOMIC_OPS(xor, ^=) | ^~~~~~~~~~ arch/sh/include/asm/atomic-irq.h: In function 'arch_atomic_fetch_xor': >> include/linux/irqflags.h:192:35: error: '_THIS_IP_' undeclared (first use in this function) 192 | dept_hardirqs_off(_THIS_IP_); \ | ^~~~~~~~~ arch/sh/include/asm/atomic-irq.h:42:9: note: in expansion of macro 'raw_local_irq_save' 42 | raw_local_irq_save(flags); \ | ^~~~~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:61:9: note: in expansion of macro 'ATOMIC_FETCH_OP' 61 | ATOMIC_FETCH_OP(op, c_op) | ^~~~~~~~~~~~~~~ arch/sh/include/asm/atomic-irq.h:65:1: note: in expansion of macro 'ATOMIC_OPS' 65 | ATOMIC_OPS(xor, ^=) | ^~~~~~~~~~ make[2]: *** [scripts/Makefile.build:114: kernel/bounds.s] Error 1 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:1286: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:242: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/_THIS_IP_ +192 include/linux/irqflags.h 174 175 /* 176 * Wrap the arch provided IRQ routines to provide appropriate checks. 177 */ 178 #define raw_local_irq_disable() \ 179 do { \ 180 arch_local_irq_disable(); \ 181 dept_hardirqs_off(_THIS_IP_); \ 182 } while (0) 183 #define raw_local_irq_enable() \ 184 do { \ 185 dept_hardirqs_on(_THIS_IP_); \ 186 arch_local_irq_enable(); \ 187 } while (0) 188 #define raw_local_irq_save(flags) \ 189 do { \ 190 typecheck(unsigned long, flags); \ 191 flags = arch_local_irq_save(); \ > 192 dept_hardirqs_off(_THIS_IP_); \ 193 } while (0) 194 #define raw_local_irq_restore(flags) \ 195 do { \ 196 typecheck(unsigned long, flags); \ 197 raw_check_bogus_irq_restore(); \ 198 if (!arch_irqs_disabled_flags(flags)) \ 199 dept_hardirqs_on(_THIS_IP_); \ 200 arch_local_irq_restore(flags); \ 201 } while (0) 202 #define raw_local_save_flags(flags) \ 203 do { \ 204 typecheck(unsigned long, flags); \ 205 flags = arch_local_save_flags(); \ 206 } while (0) 207 #define raw_irqs_disabled_flags(flags) \ 208 ({ \ 209 typecheck(unsigned long, flags); \ 210 arch_irqs_disabled_flags(flags); \ 211 }) 212 #define raw_irqs_disabled() (arch_irqs_disabled()) 213 #define raw_safe_halt() arch_safe_halt() 214 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests