parisc: syscalls: Avoid compiler warnings with W=1
authorHelge Deller <deller@gmx.de>
Mon, 3 Jul 2023 16:43:13 +0000 (18:43 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 3 Jul 2023 16:56:03 +0000 (18:56 +0200)
We do not want to add prototypes for all parisc specific syscalls, so
simply drop such warnings when building the kernel.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/Makefile

index 3d138c9..2d1478f 100644 (file)
@@ -21,6 +21,9 @@ CFLAGS_REMOVE_unwind.o = $(CC_FLAGS_FTRACE)
 CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE)
 endif
 
+CFLAGS_REMOVE_sys_parisc.o = -Wmissing-prototypes -Wmissing-declarations
+CFLAGS_REMOVE_sys_parisc32.o = -Wmissing-prototypes -Wmissing-declarations
+
 obj-$(CONFIG_SMP)      += smp.o
 obj-$(CONFIG_PA11)     += pci-dma.o
 obj-$(CONFIG_PCI)      += pci.o