tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 9f925874281f7e8855855d6210d6e29d844e4307 commit: 2c32daa6fbc2820c42f3de9e38f8e6676bce2eeb [3676/4223] parisc: Add lightweight spinlock checks config: parisc-buildonly-randconfig-r002-20230522 compiler: hppa-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2c32daa6fbc2820c42f3de9e38f8e6676bce2eeb git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 2c32daa6fbc2820c42f3de9e38f8e6676bce2eeb # 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=parisc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202305240732.wUCsRNAj-lkp@intel.com/ All errors (new ones prefixed by >>): arch/parisc/kernel/traps.c: In function 'handle_break': >> arch/parisc/kernel/traps.c:312:25: error: 'SPINLOCK_BREAK_INSN' undeclared (first use in this function) 312 | (iir == SPINLOCK_BREAK_INSN) && | ^~~~~~~~~~~~~~~~~~~ arch/parisc/kernel/traps.c:312:25: note: each undeclared identifier is reported only once for each function it appears in arch/parisc/kernel/traps.c: At top level: arch/parisc/kernel/traps.c:336:6: warning: no previous prototype for 'transfer_pim_to_trap_frame' [-Wmissing-prototypes] 336 | void transfer_pim_to_trap_frame(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/parisc/kernel/traps.c:473:14: warning: no previous prototype for 'handle_interruption' [-Wmissing-prototypes] 473 | void notrace handle_interruption(int code, struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~ arch/parisc/kernel/traps.c:798:13: warning: no previous prototype for 'initialize_ivt' [-Wmissing-prototypes] 798 | void __init initialize_ivt(const void *iva) | ^~~~~~~~~~~~~~ arch/parisc/kernel/traps.c: In function 'initialize_ivt': arch/parisc/kernel/traps.c:805:14: warning: variable 'hpmcp' set but not used [-Wunused-but-set-variable] 805 | u32 *hpmcp; | ^~~~~ arch/parisc/kernel/traps.c: At top level: arch/parisc/kernel/traps.c:850:14: warning: no previous prototype for 'early_trap_init' [-Wmissing-prototypes] 850 | void __init early_trap_init(void) | ^~~~~~~~~~~~~~~ vim +/SPINLOCK_BREAK_INSN +312 arch/parisc/kernel/traps.c 303 304 #ifdef CONFIG_KGDB 305 if (unlikely(iir == PARISC_KGDB_COMPILED_BREAK_INSN || 306 iir == PARISC_KGDB_BREAK_INSN)) { 307 kgdb_handle_exception(9, SIGTRAP, 0, regs); 308 return; 309 } 310 #endif 311 if (IS_ENABLED(CONFIG_LIGHTWEIGHT_SPINLOCK_CHECK) && > 312 (iir == SPINLOCK_BREAK_INSN) && 313 !user_mode(regs)) { 314 die_if_kernel("Spinlock was trashed", regs, 1); 315 } 316 317 if (unlikely(iir != GDB_BREAK_INSN)) 318 parisc_printk_ratelimited(0, regs, 319 KERN_DEBUG "break %d,%d: pid=%d command='%s'\n", 320 iir & 31, (iir>>13) & ((1<<13)-1), 321 task_pid_nr(current), current->comm); 322 323 /* send standard GDB signal */ 324 handle_gdb_break(regs, TRAP_BRKPT); 325 } 326 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki