From: Marco Elver Date: Thu, 18 Jun 2020 09:31:17 +0000 (+0200) Subject: kcsan: Simplify compiler flags X-Git-Tag: v5.9-rc1~203^2~2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2839a232071f588d334543fb86f5689b43353842;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Paul E. McKenney --- diff --git a/kernel/kcsan/Makefile b/kernel/kcsan/Makefile index 092ce58d2e56f..fea064afc4f72 100644 --- a/kernel/kcsan/Makefile +++ b/kernel/kcsan/Makefile @@ -7,8 +7,8 @@ CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_debugfs.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE) -CFLAGS_core.o := $(call cc-option,-fno-conserve-stack,) \ - $(call cc-option,-fno-stack-protector,) +CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \ + -fno-stack-protector obj-y := core.o debugfs.o report.o obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o