Skip to content

Commit 2839a23

Browse files
melverpaulmckrcu
authored andcommitted
kcsan: Simplify compiler flags
Simplify the set of compiler flags for the runtime by removing cc-option from -fno-stack-protector, because all supported compilers support it. This saves us one compiler invocation during build. Signed-off-by: Marco Elver <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent e68dcd8 commit 2839a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/kcsan/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
77
CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE)
88
CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE)
99

10-
CFLAGS_core.o := $(call cc-option,-fno-conserve-stack,) \
11-
$(call cc-option,-fno-stack-protector,)
10+
CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \
11+
-fno-stack-protector
1212

1313
obj-y := core.o debugfs.o report.o
1414
obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o

0 commit comments

Comments
 (0)