[Sorry for the long email]
Following MIPS defconfig and other builds failed with gcc-12 /8 and clang toolchains on Linux next-20231127 tag.
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
mips: build: * gcc-12-rt305x_defconfig * gcc-12-allnoconfig * gcc-12-ath79_defconfig * gcc-12-malta_defconfig * gcc-12-defconfig * gcc-12-bcm63xx_defconfig * gcc-12-tinyconfig * gcc-8-allnoconfig * gcc-8-tinyconfig * gcc-8-rt305x_defconfig * gcc-8-bcm63xx_defconfig * gcc-8-bcm47xx_defconfig * gcc-8-ath79_defconfig * gcc-8-defconfig * gcc-8-malta_defconfig * gcc-12-bcm47xx_defconfig * clang-17-tinyconfig * clang-17-defconfig * clang-17-allnoconfig * clang-nightly-defconfig * clang-nightly-tinyconfig * clang-nightly-allnoconfig
Build log: ---------- arch/mips/ralink/irq.c:86:5: error: no previous prototype for 'get_c0_perfcount_int' [-Werror=missing-prototypes] 86 | int get_c0_perfcount_int(void) | ^~~~~~~~~~~~~~~~~~~~ arch/mips/ralink/irq.c:92:14: error: no previous prototype for 'get_c0_compare_int' [-Werror=missing-prototypes] 92 | unsigned int get_c0_compare_int(void) | ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/kernel/signal.c:438:5: error: no previous prototype for 'setup_sigcontext' [-Werror=missing-prototypes] 438 | int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | ^~~~~~~~~~~~~~~~ arch/mips/kernel/signal.c:515:5: error: no previous prototype for 'restore_sigcontext' [-Werror=missing-prototypes] 515 | int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | ^~~~~~~~~~~~~~~~~~ arch/mips/kernel/signal.c:636:17: error: no previous prototype for 'sys_sigreturn' [-Werror=missing-prototypes] 636 | asmlinkage void sys_sigreturn(void) | ^~~~~~~~~~~~~ arch/mips/kernel/signal.c:673:17: error: no previous prototype for 'sys_rt_sigreturn' [-Werror=missing-prototypes] 673 | asmlinkage void sys_rt_sigreturn(void) | ^~~~~~~~~~~~~~~~ arch/mips/kernel/signal.c:903:17: error: no previous prototype for 'do_notify_resume' [-Werror=missing-prototypes] 903 | asmlinkage void do_notify_resume(struct pt_regs *regs, void *unused, | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/kernel/syscall.c:51:16: error: no previous prototype for 'sysm_pipe' [-Werror=missing-prototypes] 51 | asmlinkage int sysm_pipe(void) | ^~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/kernel/traps.c:370:6: error: no previous prototype for 'show_registers' [-Werror=missing-prototypes] 370 | void show_registers(struct pt_regs *regs) | ^~~~~~~~~~~~~~ arch/mips/kernel/traps.c:447:17: error: no previous prototype for 'do_be' [-Werror=missing-prototypes] 447 | asmlinkage void do_be(struct pt_regs *regs) | ^~~~~ arch/mips/kernel/traps.c:752:17: error: no previous prototype for 'do_ov' [-Werror=missing-prototypes] 752 | asmlinkage void do_ov(struct pt_regs *regs) | ^~~~~ arch/mips/kernel/traps.c:874:17: error: no previous prototype for 'do_fpe' [-Werror=missing-prototypes] 874 | asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31) | ^~~~~~ arch/mips/kernel/traps.c:1027:17: error: no previous prototype for 'do_bp' [-Werror=missing-prototypes] 1027 | asmlinkage void do_bp(struct pt_regs *regs) | ^~~~~ arch/mips/kernel/traps.c:1114:17: error: no previous prototype for 'do_tr' [-Werror=missing-prototypes] 1114 | asmlinkage void do_tr(struct pt_regs *regs) | ^~~~~ arch/mips/kernel/traps.c:1151:17: error: no previous prototype for 'do_ri' [-Werror=missing-prototypes] 1151 | asmlinkage void do_ri(struct pt_regs *regs) | ^~~~~ arch/mips/kernel/traps.c:1402:17: error: no previous prototype for 'do_cpu' [-Werror=missing-prototypes] 1402 | asmlinkage void do_cpu(struct pt_regs *regs) | ^~~~~~ arch/mips/kernel/traps.c:1507:17: error: no previous prototype for 'do_msa_fpe' [-Werror=missing-prototypes] 1507 | asmlinkage void do_msa_fpe(struct pt_regs *regs, unsigned int msacsr) | ^~~~~~~~~~ arch/mips/kernel/traps.c:1527:17: error: no previous prototype for 'do_msa' [-Werror=missing-prototypes] 1527 | asmlinkage void do_msa(struct pt_regs *regs) | ^~~~~~ arch/mips/kernel/traps.c:1548:17: error: no previous prototype for 'do_mdmx' [-Werror=missing-prototypes] 1548 | asmlinkage void do_mdmx(struct pt_regs *regs) | ^~~~~~~ arch/mips/kernel/traps.c:1560:17: error: no previous prototype for 'do_watch' [-Werror=missing-prototypes] 1560 | asmlinkage void do_watch(struct pt_regs *regs) | ^~~~~~~~ arch/mips/kernel/traps.c:1587:17: error: no previous prototype for 'do_mcheck' [-Werror=missing-prototypes] 1587 | asmlinkage void do_mcheck(struct pt_regs *regs) | ^~~~~~~~~ arch/mips/kernel/traps.c:1612:17: error: no previous prototype for 'do_mt' [-Werror=missing-prototypes] 1612 | asmlinkage void do_mt(struct pt_regs *regs) | ^~~~~ arch/mips/kernel/traps.c:1648:17: error: no previous prototype for 'do_dsp' [-Werror=missing-prototypes] 1648 | asmlinkage void do_dsp(struct pt_regs *regs) | ^~~~~~ arch/mips/kernel/traps.c:1656:17: error: no previous prototype for 'do_reserved' [-Werror=missing-prototypes] 1656 | asmlinkage void do_reserved(struct pt_regs *regs) | ^~~~~~~~~~~ arch/mips/kernel/traps.c:1832:17: error: no previous prototype for 'cache_parity_error' [-Werror=missing-prototypes] 1832 | asmlinkage void cache_parity_error(void) | ^~~~~~~~~~~~~~~~~~ arch/mips/kernel/traps.c:1880:17: error: no previous prototype for 'do_ftlb' [-Werror=missing-prototypes] 1880 | asmlinkage void do_ftlb(void) | ^~~~~~~ arch/mips/kernel/traps.c:1909:17: error: no previous prototype for 'do_gsexc' [-Werror=missing-prototypes] 1909 | asmlinkage void do_gsexc(struct pt_regs *regs, u32 diag1) | ^~~~~~~~ arch/mips/kernel/traps.c:1944:6: error: no previous prototype for 'ejtag_exception_handler' [-Werror=missing-prototypes] 1944 | void ejtag_exception_handler(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/traps.c:1989:17: error: no previous prototype for 'nmi_exception_handler' [-Werror=missing-prototypes] 1989 | void __noreturn nmi_exception_handler(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/kernel/unaligned.c:1516:17: error: no previous prototype for 'do_ade' [-Werror=missing-prototypes] 1516 | asmlinkage void do_ade(struct pt_regs *regs) | ^~~~~~ cc1: all warnings being treated as errors
arch/mips/mm/fault.c:323:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] 323 | asmlinkage void do_page_fault(struct pt_regs *regs, | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/kernel/spram.c:194:6: error: no previous prototype for 'spram_config' [-Werror=missing-prototypes] 194 | void spram_config(void) | ^~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/mm/init.c:60:6: error: no previous prototype for 'setup_zero_pages' [-Werror=missing-prototypes] 60 | void setup_zero_pages(void) | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/mm/tlbex.c:2547:6: error: no previous prototype for 'build_tlb_refill_handler' [-Werror=missing-prototypes] 2547 | void build_tlb_refill_handler(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/mm/uasm.c:421:5: error: no previous prototype for 'uasm_in_compat_space_p' [-Werror=missing-prototypes] 421 | int uasm_in_compat_space_p(long addr) | ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/mm/c-r4k.c:1588:6: error: no previous prototype for 'au1x00_fixup_config_od' [-Werror=missing-prototypes] 1588 | void au1x00_fixup_config_od(void) | ^~~~~~~~~~~~~~~~~~~~~~ arch/mips/mm/c-r4k.c:1703:6: error: no previous prototype for 'r4k_cache_init' [-Werror=missing-prototypes] 1703 | void r4k_cache_init(void) | ^~~~~~~~~~~~~~ arch/mips/mm/c-r4k.c:1831:12: error: no previous prototype for 'r4k_cache_init_pm' [-Werror=missing-prototypes] 1831 | int __init r4k_cache_init_pm(void) | ^~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
arch/mips/mm/tlb-r4k.c:553:6: error: no previous prototype for 'tlb_init' [-Werror=missing-prototypes] 553 | void tlb_init(void) | ^~~~~~~~ cc1: all warnings being treated as errors
steps to reproduce: --------
# tuxmake --runtime podman --target-arch mips --toolchain gcc-12 --kconfig bcm63xx_defconfig
Links: - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231127/tes... - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231127/tes... - https://storage.tuxsuite.com/public/linaro/lkft/builds/2Yk9XTZIxZgMhlvkvmFPO...
-- Linaro LKFT https://lkft.linaro.org