linux-stable/arch/alpha/lib
Arnd Bergmann 0f0d2871e7 arch: turn off -Werror for architectures with known warnings
A couple of architectures enable -Werror for their own files regardless of
CONFIG_WERROR but also have known warnings that fail the build with
-Wmissing-prototypes enabled by default:

arch/alpha/lib/memcpy.c:153:8: error: no previous prototype for 'memcpy' [-Werror=missing-prototypes]
arch/alpha/kernel/irq.c:96:1: error: no previous prototype for 'handle_irq' [-Werror=missing-prototypes]
arch/mips/kernel/signal.c:673:17: error: no previous prototype for ‘sys_rt_sigreturn’ [-Werror=missing-prototypes]
arch/mips/kernel/signal.c:636:17: error: no previous prototype for ‘sys_sigreturn’ [-Werror=missing-prototypes]
arch/mips/kernel/syscall.c:51:16: error: no previous prototype for ‘sysm_pipe’ [-Werror=missing-prototypes]
arch/mips/mm/fault.c:323:17: error: no previous prototype for ‘do_page_fault’ [-Werror=missing-prototypes]
arch/sparc/vdso/vma.c:246:12: warning: no previous prototype for ‘init_vdso_image’ [-Wmissing-prototypes]v
arch/sparc/vdso/vdso32/../vclock_gettime.c:343:1: warning: no previous prototype for ‘__vdso_gettimeofday_stick’ [-Wmissing-prototypes]
arch/sparc/vdso/vclock_gettime.c:343:1: warning: no previous prototype for ‘__vdso_gettimeofday_stick’ [-Wmissing-prototypes]
arch/sparc/prom/p1275.c:52:6: warning: no previous prototype for ‘prom_cif_init’ [-Wmissing-prototypes]
arch/sparc/prom/misc_64.c:165:5: warning: no previous prototype for ‘prom_get_mmu_ihandle’ [-Wmissing-prototypes]

This appears to be an artifact from the times when this architecture code
was better maintained that most device drivers and before CONFIG_WERROR
was added.  Now it just gets in the way, so remove all of these.

Powerpc and x86 both still have their own Kconfig options to enable
-Werror for some of their files.  These architectures are better
maintained than most and the options are easy to disable, so leave those
untouched.

Link: https://lkml.kernel.org/r/4be73872-c1f5-4c31-8201-712c19290a22@app.fastmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: Stephen Rothwell <sfr@rothwell.id.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-12-10 17:21:33 -08:00
..
callback_srm.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
checksum.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clear_page.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
clear_user.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
copy_page.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
copy_user.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
csum_ipv6_magic.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
csum_partial_copy.c net: unexport csum_and_copy_{from,to}_user 2022-04-29 14:37:59 -07:00
dbg_current.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dbg_stackcheck.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dbg_stackkill.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
divide.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-clear_page.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-clear_user.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-copy_page.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-copy_user.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-csum_ipv6_magic.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-divide.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-memchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-memcpy.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-memset.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-stxcpy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ev6-stxncpy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ev67-strcat.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev67-strchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev67-strlen.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev67-strncat.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev67-strrchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
fls.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fpreg.c alpha: fix lazy-FPU mis(merged/applied/whatnot) 2023-03-06 20:13:49 -05:00
Makefile arch: turn off -Werror for architectures with known warnings 2023-12-10 17:21:33 -08:00
memchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
memcpy.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
memmove.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
memset.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
srm_printk.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
srm_puts.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stacktrace.c alpha: Implement "current_stack_pointer" 2023-02-14 12:36:22 -05:00
strcat.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strcpy.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strlen.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strncat.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strncpy.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strrchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
stxcpy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stxncpy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
udelay.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
udiv-qrnnd.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00