tree: https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git nios2_for_v5.16 head: 97497b288e3c5e80d7de693e535484382629fbb3 commit: 97497b288e3c5e80d7de693e535484382629fbb3 [1/1] nios2: Add NIOS2_ to distinquish defines config: nios2-defconfig (attached as .config) compiler: nios2-linux-gcc (GCC) 11.2.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/dinguyen/linux.git/commit/?id=97497b288e3c5e80d7de693e535484382629fbb3 git remote add dinguyen https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git git fetch --no-tags dinguyen nios2_for_v5.16 git checkout 97497b288e3c5e80d7de693e535484382629fbb3 # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/nios2/kernel/irq.c:19:17: warning: no previous prototype for 'do_IRQ' [-Wmissing-prototypes] 19 | asmlinkage void do_IRQ(int hwirq, struct pt_regs *regs) | ^~~~~~ In file included from arch/nios2/include/asm/irqflags.h:8, from include/linux/irqflags.h:16, from include/asm-generic/bitops.h:14, from ./arch/nios2/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/kernel.h:12, from include/linux/interrupt.h:6, from arch/nios2/kernel/irq.c:13: arch/nios2/kernel/irq.c: In function 'chip_unmask': >> arch/nios2/kernel/irq.c:33:21: error: 'CTL_IENABLE' undeclared (first use in this function); did you mean 'PTR_IENABLE'? 33 | NIOS2_WRCTL(CTL_IENABLE, ienable); | ^~~~~~~~~~~ arch/nios2/kernel/irq.c:33:9: note: in expansion of macro 'NIOS2_WRCTL' 33 | NIOS2_WRCTL(CTL_IENABLE, ienable); | ^~~~~~~~~~~ arch/nios2/kernel/irq.c:33:21: note: each undeclared identifier is reported only once for each function it appears in 33 | NIOS2_WRCTL(CTL_IENABLE, ienable); | ^~~~~~~~~~~ arch/nios2/kernel/irq.c:33:9: note: in expansion of macro 'NIOS2_WRCTL' 33 | NIOS2_WRCTL(CTL_IENABLE, ienable); | ^~~~~~~~~~~ arch/nios2/kernel/irq.c: In function 'chip_mask': arch/nios2/kernel/irq.c:39:21: error: 'CTL_IENABLE' undeclared (first use in this function); did you mean 'PTR_IENABLE'? 39 | NIOS2_WRCTL(CTL_IENABLE, ienable); | ^~~~~~~~~~~ arch/nios2/include/asm/registers.h:33:49: note: in definition of macro 'NIOS2_WRCTL' 33 | #define NIOS2_WRCTL(r, v) __builtin_wrctl(r, v) | ^ arch/nios2/kernel/irq.c: At top level: arch/nios2/kernel/irq.c:61:13: warning: no previous prototype for 'init_IRQ' [-Wmissing-prototypes] 61 | void __init init_IRQ(void) | ^~~~~~~~ In file included from arch/nios2/include/asm/irqflags.h:8, from include/linux/irqflags.h:16, from include/asm-generic/bitops.h:14, from ./arch/nios2/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/kernel.h:12, from include/linux/interrupt.h:6, from arch/nios2/kernel/irq.c:13: arch/nios2/kernel/irq.c: In function 'init_IRQ': arch/nios2/kernel/irq.c:78:31: error: 'CTL_IENABLE' undeclared (first use in this function); did you mean 'PTR_IENABLE'? 78 | ienable = NIOS2_RDCTL(CTL_IENABLE); | ^~~~~~~~~~~ arch/nios2/include/asm/registers.h:32:41: note: in definition of macro 'NIOS2_RDCTL' 32 | #define NIOS2_RDCTL(r) __builtin_rdctl(r) | ^ -- arch/nios2/kernel/traps.c:32:6: warning: no previous prototype for 'die' [-Wmissing-prototypes] 32 | void die(const char *str, struct pt_regs *regs, long err) | ^~~ arch/nios2/kernel/traps.c:109:17: warning: no previous prototype for 'breakpoint_c' [-Wmissing-prototypes] 109 | asmlinkage void breakpoint_c(struct pt_regs *fp) | ^~~~~~~~~~~~ arch/nios2/kernel/traps.c:147:17: warning: no previous prototype for 'handle_illegal_c' [-Wmissing-prototypes] 147 | asmlinkage void handle_illegal_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~~ arch/nios2/kernel/traps.c:154:17: warning: no previous prototype for 'handle_supervisor_instr' [-Wmissing-prototypes] 154 | asmlinkage void handle_supervisor_instr(struct pt_regs *fp) | ^~~~~~~~~~~~~~~~~~~~~~~ arch/nios2/kernel/traps.c:161:17: warning: no previous prototype for 'handle_diverror_c' [-Wmissing-prototypes] 161 | asmlinkage void handle_diverror_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~~~ arch/nios2/kernel/traps.c:168:17: warning: no previous prototype for 'unhandled_exception' [-Wmissing-prototypes] 168 | asmlinkage void unhandled_exception(struct pt_regs *regs, int cause) | ^~~~~~~~~~~~~~~~~~~ In file included from arch/nios2/include/asm/irqflags.h:8, from include/linux/irqflags.h:16, from include/asm-generic/bitops.h:14, from ./arch/nios2/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nios2/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/current.h:5, from ./arch/nios2/include/generated/asm/current.h:1, from include/linux/sched.h:12, from arch/nios2/kernel/traps.c:13: arch/nios2/kernel/traps.c: In function 'unhandled_exception': >> arch/nios2/kernel/traps.c:170:42: error: 'CTL_BADADDR' undeclared (first use in this function); did you mean 'PTR_BADADDR'? 170 | unsigned long addr = NIOS2_RDCTL(CTL_BADADDR); | ^~~~~~~~~~~ arch/nios2/include/asm/registers.h:32:41: note: in definition of macro 'NIOS2_RDCTL' 32 | #define NIOS2_RDCTL(r) __builtin_rdctl(r) | ^ arch/nios2/kernel/traps.c:170:42: note: each undeclared identifier is reported only once for each function it appears in 170 | unsigned long addr = NIOS2_RDCTL(CTL_BADADDR); | ^~~~~~~~~~~ arch/nios2/include/asm/registers.h:32:41: note: in definition of macro 'NIOS2_RDCTL' 32 | #define NIOS2_RDCTL(r) __builtin_rdctl(r) | ^ arch/nios2/kernel/traps.c: At top level: arch/nios2/kernel/traps.c:183:17: warning: no previous prototype for 'handle_trap_1_c' [-Wmissing-prototypes] 183 | asmlinkage void handle_trap_1_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~ arch/nios2/kernel/traps.c:188:17: warning: no previous prototype for 'handle_trap_2_c' [-Wmissing-prototypes] 188 | asmlinkage void handle_trap_2_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~ arch/nios2/kernel/traps.c:193:17: warning: no previous prototype for 'handle_trap_3_c' [-Wmissing-prototypes] 193 | asmlinkage void handle_trap_3_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~ -- arch/nios2/kernel/misaligned.c:66:17: warning: no previous prototype for 'handle_unaligned_c' [-Wmissing-prototypes] 66 | asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) | ^~~~~~~~~~~~~~~~~~ In file included from arch/nios2/include/asm/irqflags.h:8, from include/linux/irqflags.h:16, from include/asm-generic/bitops.h:14, from ./arch/nios2/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from include/linux/proc_fs.h:10, from arch/nios2/kernel/misaligned.c:19: arch/nios2/kernel/misaligned.c: In function 'handle_unaligned_c': >> arch/nios2/kernel/misaligned.c:150:28: error: 'CTL_BADADDR' undeclared (first use in this function); did you mean 'PTR_BADADDR'? 150 | addr = NIOS2_RDCTL(CTL_BADADDR); | ^~~~~~~~~~~ arch/nios2/include/asm/registers.h:32:41: note: in definition of macro 'NIOS2_RDCTL' 32 | #define NIOS2_RDCTL(r) __builtin_rdctl(r) | ^ arch/nios2/kernel/misaligned.c:150:28: note: each undeclared identifier is reported only once for each function it appears in 150 | addr = NIOS2_RDCTL(CTL_BADADDR); | ^~~~~~~~~~~ arch/nios2/include/asm/registers.h:32:41: note: in definition of macro 'NIOS2_RDCTL' 32 | #define NIOS2_RDCTL(r) __builtin_rdctl(r) | ^ vim +33 arch/nios2/kernel/irq.c 29 30 static void chip_unmask(struct irq_data *d) 31 { 32 ienable |= (1 << d->hwirq); > 33 NIOS2_WRCTL(CTL_IENABLE, ienable); 34 } 35 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org