[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240311132306.3420135-1-max.kellermann@ionos.com>
Date: Mon, 11 Mar 2024 14:22:56 +0100
From: Max Kellermann <max.kellermann@...os.com>
To: richard.henderson@...aro.org,
ink@...assic.park.msu.ru,
mattst88@...il.com,
linux-alpha@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Max Kellermann <max.kellermann@...os.com>
Subject: [PATCH 01/11] arch/alpha/kernel: disable -Wmissing-prototypes for asmlinkage functions
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@...os.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
Powered by blists - more mailing lists