x86/syscalls: Don't adjust CFLAGS for syscall tables
authorBrian Gerst <brgerst@gmail.com>
Mon, 24 May 2021 18:17:07 +0000 (14:17 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 25 May 2021 14:59:23 +0000 (16:59 +0200)
The syscall_*.c files only contain data (the syscall tables).  There
is no need to adjust CFLAGS for tracing and stack protector since they
contain no code.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210524181707.132844-4-brgerst@gmail.com
arch/x86/entry/Makefile

index 94d2843ce80c64830182c18fac87215c733577aa..7fec5dcf643868aff199f72a839c7f8510309ddb 100644 (file)
@@ -8,14 +8,8 @@ UBSAN_SANITIZE := n
 KCOV_INSTRUMENT := n
 
 CFLAGS_REMOVE_common.o         = $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_64.o     = $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_32.o     = $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_x32.o    = $(CC_FLAGS_FTRACE)
 
 CFLAGS_common.o                        += -fno-stack-protector
-CFLAGS_syscall_64.o            += -fno-stack-protector
-CFLAGS_syscall_32.o            += -fno-stack-protector
-CFLAGS_syscall_x32.o           += -fno-stack-protector
 
 obj-y                          := entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
 obj-y                          += common.o