public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11] arch/alpha/kernel: disable -Wmissing-prototypes for asmlinkage functions
@ 2024-03-11 13:22 Max Kellermann
  2024-03-11 13:22 ` [PATCH 02/11] arch/alpha/bugs: add missing SPDX header Max Kellermann
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Max Kellermann @ 2024-03-11 13:22 UTC (permalink / raw)
  To: richard.henderson, ink, mattst88, linux-alpha, linux-kernel
  Cc: Max Kellermann

There are no prototypes for functions which are only called by
assembly code.  Tell the compiler to disable those warnings in the
relevant sources, just like arch/parisc/kernel/Makefile does.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
---
 arch/alpha/kernel/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/alpha/kernel/Makefile b/arch/alpha/kernel/Makefile
index fb4efec7cbc7..5ba1400f3e4c 100644
--- a/arch/alpha/kernel/Makefile
+++ b/arch/alpha/kernel/Makefile
@@ -7,6 +7,14 @@ extra-y		:= vmlinux.lds
 asflags-y	:= $(KBUILD_CFLAGS)
 ccflags-y	:= -Wno-sign-compare
 
+# no prototype warnings for functions which are only called by
+# assembly code
+CFLAGS_REMOVE_irq_alpha.o = -Wmissing-prototypes -Wmissing-declarations
+CFLAGS_REMOVE_ptrace.o = -Wmissing-prototypes -Wmissing-declarations
+CFLAGS_REMOVE_signal.o = -Wmissing-prototypes -Wmissing-declarations
+CFLAGS_REMOVE_smp.o = -Wmissing-prototypes -Wmissing-declarations
+CFLAGS_REMOVE_traps.o = -Wmissing-prototypes -Wmissing-declarations
+
 obj-y    := head.o entry.o traps.o process.o osf_sys.o irq.o \
 	    irq_alpha.o signal.o setup.o ptrace.o time.o \
 	    systbls.o err_common.o io.o bugs.o termios.o
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-11 13:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-11 13:22 [PATCH 01/11] arch/alpha/kernel: disable -Wmissing-prototypes for asmlinkage functions Max Kellermann
2024-03-11 13:22 ` [PATCH 02/11] arch/alpha/bugs: add missing SPDX header Max Kellermann
2024-03-11 13:22 ` [PATCH 03/11] arch/alpha/bugs: include <linux/cpu.h> to fix -Wmissing-prototypes Max Kellermann
2024-03-11 13:22 ` [PATCH 04/11] arch/alpha/io: add missing includes " Max Kellermann
2024-03-11 13:23 ` [PATCH 05/11] arch/alpha/pci: make pcibios_claim_one_bus() static Max Kellermann
2024-03-11 13:23 ` [PATCH 06/11] arch/alpha/irq: include irq_impl.h to fix -Wmissing-prototypes Max Kellermann
2024-03-11 13:23 ` [PATCH 07/11] arch/alpha/perf_event: make init_hw_perf_events() static Max Kellermann
2024-03-11 13:23 ` [PATCH 08/11] arch/alpha/checksum: add missing includes to fix -Wmissing-prototypes Max Kellermann
2024-03-11 13:23 ` [PATCH 09/11] arch/alpha/fpreg: " Max Kellermann
2024-03-11 13:23 ` [PATCH 10/11] arch/alpha/smc37c669.: make SMC37c669_dump_registers() static Max Kellermann
2024-03-11 13:23 ` [PATCH 11/11] arch/alpha/smc37c669: add missing includes to fix -Wmissing-prototypes Max Kellermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox