Hi Stephen, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 7800ca95d0ed11b492962dc3abc2181c9d5f7f82 commit: c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6 [11847/12015] don't make the syscall checking produced errors from warnings 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/next/linux-next.git/commit/?id=c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6 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 c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> arch/nios2/kernel/irq.c:19:17: error: no previous prototype for 'do_IRQ' [-Werror=missing-prototypes] 19 | asmlinkage void do_IRQ(int hwirq, struct pt_regs *regs) | ^~~~~~ >> arch/nios2/kernel/irq.c:61:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes] 61 | void __init init_IRQ(void) | ^~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/kernel/process.c:34:6: error: no previous prototype for 'arch_cpu_idle' [-Werror=missing-prototypes] 34 | void arch_cpu_idle(void) | ^~~~~~~~~~~~~ >> arch/nios2/kernel/process.c:44:6: error: no previous prototype for 'machine_restart' [-Werror=missing-prototypes] 44 | void machine_restart(char *__unused) | ^~~~~~~~~~~~~~~ >> arch/nios2/kernel/process.c:55:6: error: no previous prototype for 'machine_halt' [-Werror=missing-prototypes] 55 | void machine_halt(void) | ^~~~~~~~~~~~ >> arch/nios2/kernel/process.c:67:6: error: no previous prototype for 'machine_power_off' [-Werror=missing-prototypes] 67 | void machine_power_off(void) | ^~~~~~~~~~~~~~~~~ >> arch/nios2/kernel/process.c:151:6: error: no previous prototype for 'dump' [-Werror=missing-prototypes] 151 | void dump(struct pt_regs *fp) | ^~~~ >> arch/nios2/kernel/process.c:255:16: error: no previous prototype for 'nios2_clone' [-Werror=missing-prototypes] 255 | asmlinkage int nios2_clone(unsigned long clone_flags, unsigned long newsp, | ^~~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/kernel/setup.c:107:24: error: no previous prototype for 'nios2_boot_init' [-Werror=missing-prototypes] 107 | asmlinkage void __init nios2_boot_init(unsigned r4, unsigned r5, unsigned r6, | ^~~~~~~~~~~~~~~ arch/nios2/kernel/setup.c: In function 'setup_arch': >> arch/nios2/kernel/setup.c:152:13: error: unused variable 'dram_start' [-Werror=unused-variable] 152 | int dram_start; | ^~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/kernel/signal.c:101:16: error: no previous prototype for 'do_rt_sigreturn' [-Werror=missing-prototypes] 101 | asmlinkage int do_rt_sigreturn(struct switch_stack *sw) | ^~~~~~~~~~~~~~~ >> arch/nios2/kernel/signal.c:299:16: error: no previous prototype for 'do_notify_resume' [-Werror=missing-prototypes] 299 | asmlinkage int do_notify_resume(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/kernel/sys_nios2.c:21:16: error: no previous prototype for 'sys_cacheflush' [-Werror=missing-prototypes] 21 | asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, | ^~~~~~~~~~~~~~ >> arch/nios2/kernel/sys_nios2.c:57:16: error: no previous prototype for 'sys_getpagesize' [-Werror=missing-prototypes] 57 | asmlinkage int sys_getpagesize(void) | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/kernel/time.c:200:13: error: no previous prototype for 'timer_interrupt' [-Werror=missing-prototypes] 200 | irqreturn_t timer_interrupt(int irq, void *dev_id) | ^~~~~~~~~~~~~~~ >> arch/nios2/kernel/time.c:345:13: error: no previous prototype for 'time_init' [-Werror=missing-prototypes] 345 | void __init time_init(void) | ^~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/kernel/traps.c:32:6: error: no previous prototype for 'die' [-Werror=missing-prototypes] 32 | void die(const char *str, struct pt_regs *regs, long err) | ^~~ arch/nios2/kernel/traps.c:108:13: error: no previous prototype for 'trap_init' [-Werror=missing-prototypes] 108 | void __init trap_init(void) | ^~~~~~~~~ >> arch/nios2/kernel/traps.c:114:17: error: no previous prototype for 'breakpoint_c' [-Werror=missing-prototypes] 114 | asmlinkage void breakpoint_c(struct pt_regs *fp) | ^~~~~~~~~~~~ >> arch/nios2/kernel/traps.c:152:17: error: no previous prototype for 'handle_illegal_c' [-Werror=missing-prototypes] 152 | asmlinkage void handle_illegal_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~~ >> arch/nios2/kernel/traps.c:159:17: error: no previous prototype for 'handle_supervisor_instr' [-Werror=missing-prototypes] 159 | asmlinkage void handle_supervisor_instr(struct pt_regs *fp) | ^~~~~~~~~~~~~~~~~~~~~~~ >> arch/nios2/kernel/traps.c:166:17: error: no previous prototype for 'handle_diverror_c' [-Werror=missing-prototypes] 166 | asmlinkage void handle_diverror_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~~~ >> arch/nios2/kernel/traps.c:173:17: error: no previous prototype for 'unhandled_exception' [-Werror=missing-prototypes] 173 | asmlinkage void unhandled_exception(struct pt_regs *regs, int cause) | ^~~~~~~~~~~~~~~~~~~ >> arch/nios2/kernel/traps.c:188:17: error: no previous prototype for 'handle_trap_1_c' [-Werror=missing-prototypes] 188 | asmlinkage void handle_trap_1_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~ >> arch/nios2/kernel/traps.c:193:17: error: no previous prototype for 'handle_trap_2_c' [-Werror=missing-prototypes] 193 | asmlinkage void handle_trap_2_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~ >> arch/nios2/kernel/traps.c:198:17: error: no previous prototype for 'handle_trap_3_c' [-Werror=missing-prototypes] 198 | asmlinkage void handle_trap_3_c(struct pt_regs *fp) | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/kernel/misaligned.c:66:17: error: no previous prototype for 'handle_unaligned_c' [-Werror=missing-prototypes] 66 | asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) | ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/mm/cacheflush.c:161:6: error: no previous prototype for '__flush_dcache_page' [-Werror=missing-prototypes] 161 | void __flush_dcache_page(struct address_space *mapping, struct page *page) | ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/mm/dma-mapping.c:21:6: error: no previous prototype for 'arch_sync_dma_for_device' [-Werror=missing-prototypes] 21 | void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, | ^~~~~~~~~~~~~~~~~~~~~~~~ >> arch/nios2/mm/dma-mapping.c:45:6: error: no previous prototype for 'arch_sync_dma_for_cpu' [-Werror=missing-prototypes] 45 | void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, | ^~~~~~~~~~~~~~~~~~~~~ >> arch/nios2/mm/dma-mapping.c:63:6: error: no previous prototype for 'arch_dma_prep_coherent' [-Werror=missing-prototypes] 63 | void arch_dma_prep_coherent(struct page *page, size_t size) | ^~~~~~~~~~~~~~~~~~~~~~ >> arch/nios2/mm/dma-mapping.c:70:7: error: no previous prototype for 'arch_dma_set_uncached' [-Werror=missing-prototypes] 70 | void *arch_dma_set_uncached(void *ptr, size_t size) | ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/nios2/mm/fault.c:43:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] 43 | asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long cause, | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors .. vim +/do_IRQ +19 arch/nios2/kernel/irq.c f27ffc751ca5d2 Ley Foon Tan 2014-11-06 18 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 @19 asmlinkage void do_IRQ(int hwirq, struct pt_regs *regs) f27ffc751ca5d2 Ley Foon Tan 2014-11-06 20 { f27ffc751ca5d2 Ley Foon Tan 2014-11-06 21 struct pt_regs *oldregs = set_irq_regs(regs); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 22 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 23 irq_enter(); 153517d4e7d1c3 Marc Zyngier 2021-05-04 24 generic_handle_domain_irq(NULL, hwirq); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 25 irq_exit(); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 26 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 27 set_irq_regs(oldregs); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 28 } f27ffc751ca5d2 Ley Foon Tan 2014-11-06 29 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 30 static void chip_unmask(struct irq_data *d) f27ffc751ca5d2 Ley Foon Tan 2014-11-06 31 { f27ffc751ca5d2 Ley Foon Tan 2014-11-06 32 ienable |= (1 << d->hwirq); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 33 WRCTL(CTL_IENABLE, ienable); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 34 } f27ffc751ca5d2 Ley Foon Tan 2014-11-06 35 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 36 static void chip_mask(struct irq_data *d) f27ffc751ca5d2 Ley Foon Tan 2014-11-06 37 { f27ffc751ca5d2 Ley Foon Tan 2014-11-06 38 ienable &= ~(1 << d->hwirq); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 39 WRCTL(CTL_IENABLE, ienable); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 40 } f27ffc751ca5d2 Ley Foon Tan 2014-11-06 41 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 42 static struct irq_chip m_irq_chip = { f27ffc751ca5d2 Ley Foon Tan 2014-11-06 43 .name = "NIOS2-INTC", f27ffc751ca5d2 Ley Foon Tan 2014-11-06 44 .irq_unmask = chip_unmask, f27ffc751ca5d2 Ley Foon Tan 2014-11-06 45 .irq_mask = chip_mask, f27ffc751ca5d2 Ley Foon Tan 2014-11-06 46 }; f27ffc751ca5d2 Ley Foon Tan 2014-11-06 47 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 48 static int irq_map(struct irq_domain *h, unsigned int virq, f27ffc751ca5d2 Ley Foon Tan 2014-11-06 49 irq_hw_number_t hw_irq_num) f27ffc751ca5d2 Ley Foon Tan 2014-11-06 50 { f27ffc751ca5d2 Ley Foon Tan 2014-11-06 51 irq_set_chip_and_handler(virq, &m_irq_chip, handle_level_irq); f27ffc751ca5d2 Ley Foon Tan 2014-11-06 52 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 53 return 0; f27ffc751ca5d2 Ley Foon Tan 2014-11-06 54 } f27ffc751ca5d2 Ley Foon Tan 2014-11-06 55 57ac76ed6c0daf Tobias Klauser 2017-04-02 56 static const struct irq_domain_ops irq_ops = { f27ffc751ca5d2 Ley Foon Tan 2014-11-06 57 .map = irq_map, f27ffc751ca5d2 Ley Foon Tan 2014-11-06 58 .xlate = irq_domain_xlate_onecell, f27ffc751ca5d2 Ley Foon Tan 2014-11-06 59 }; f27ffc751ca5d2 Ley Foon Tan 2014-11-06 60 f27ffc751ca5d2 Ley Foon Tan 2014-11-06 @61 void __init init_IRQ(void) :::::: The code at line 19 was first introduced by commit :::::: f27ffc751ca5d216a347084996c70452a4e185a4 nios2: Interrupt handling :::::: TO: Ley Foon Tan <lftan@xxxxxxxxxx> :::::: CC: Ley Foon Tan <lftan@xxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip