Messages in this thread Patch in this message | | | From | Max Kellermann <> | Subject | [PATCH 01/11] arch/alpha/kernel: disable -Wmissing-prototypes for asmlinkage functions | Date | Mon, 11 Mar 2024 14:22:56 +0100 |
| |
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
| |