mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 14:05:39 +00:00
0f0d2871e7
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>
56 lines
2.0 KiB
Makefile
56 lines
2.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for Sparc library files..
|
|
#
|
|
|
|
asflags-y := -ansi -DST_DIV0=0x02
|
|
|
|
lib-$(CONFIG_SPARC32) += ashrdi3.o
|
|
lib-$(CONFIG_SPARC32) += memcpy.o memset.o
|
|
lib-y += strlen.o
|
|
lib-y += checksum_$(BITS).o
|
|
lib-$(CONFIG_SPARC32) += blockops.o
|
|
lib-y += memscan_$(BITS).o memcmp.o strncmp_$(BITS).o
|
|
lib-$(CONFIG_SPARC32) += divdi3.o udivdi3.o
|
|
lib-$(CONFIG_SPARC32) += copy_user.o locks.o
|
|
lib-$(CONFIG_SPARC64) += atomic_64.o
|
|
lib-$(CONFIG_SPARC32) += lshrdi3.o ashldi3.o
|
|
lib-$(CONFIG_SPARC32) += muldi3.o bitext.o cmpdi2.o
|
|
lib-$(CONFIG_SPARC64) += multi3.o
|
|
lib-$(CONFIG_SPARC64) += fls.o
|
|
lib-$(CONFIG_SPARC64) += fls64.o
|
|
lib-$(CONFIG_SPARC64) += NG4fls.o
|
|
|
|
lib-$(CONFIG_SPARC64) += copy_page.o clear_page.o bzero.o
|
|
lib-$(CONFIG_SPARC64) += csum_copy.o csum_copy_from_user.o csum_copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += VISsave.o
|
|
lib-$(CONFIG_SPARC64) += bitops.o
|
|
|
|
lib-$(CONFIG_SPARC64) += U1memcpy.o U1copy_from_user.o U1copy_to_user.o
|
|
|
|
lib-$(CONFIG_SPARC64) += U3memcpy.o U3copy_from_user.o U3copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += U3patch.o
|
|
|
|
lib-$(CONFIG_SPARC64) += NGmemcpy.o NGcopy_from_user.o NGcopy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += NGpatch.o NGpage.o NGbzero.o
|
|
|
|
lib-$(CONFIG_SPARC64) += NG2memcpy.o NG2copy_from_user.o NG2copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += NG2patch.o
|
|
|
|
lib-$(CONFIG_SPARC64) += NG4memcpy.o NG4copy_from_user.o NG4copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += NG4patch.o NG4copy_page.o NG4clear_page.o NG4memset.o
|
|
|
|
lib-$(CONFIG_SPARC64) += Memcpy_utils.o
|
|
|
|
lib-$(CONFIG_SPARC64) += M7memcpy.o M7copy_from_user.o M7copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += M7patch.o M7memset.o
|
|
|
|
lib-$(CONFIG_SPARC64) += GENmemcpy.o GENcopy_from_user.o GENcopy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += GENpatch.o GENpage.o GENbzero.o
|
|
|
|
lib-$(CONFIG_SPARC64) += copy_in_user.o memmove.o
|
|
lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
|
|
|
|
obj-$(CONFIG_SPARC64) += iomap.o
|
|
obj-$(CONFIG_SPARC32) += atomic32.o ucmpdi2.o
|
|
obj-$(CONFIG_SPARC64) += PeeCeeI.o
|