From: Masahiro Yamada Date: Thu, 10 Sep 2020 13:51:19 +0000 (+0900) Subject: kbuild: remove cc-option test of -fno-stack-check X-Git-Tag: v5.10-rc1~51^2~15 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7d4eb0d8e229fa51e14f0f85de03c02880e7d742;p=linux-block.git kbuild: remove cc-option test of -fno-stack-check The minimal compiler version, GCC 4.9 supports this flag. Nathan Chancellor pointed out: "This flag is technically ignored by clang (see commit 05b0798916f01690b5903302e51f3136274e291f) but that obviously does not matter for the sake of this." Here is the godbolt: https://godbolt.org/z/59cK6o Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor --- diff --git a/Makefile b/Makefile index 7036dcb99cdf..3722b42fd01e 100644 --- a/Makefile +++ b/Makefile @@ -940,7 +940,7 @@ KBUILD_CFLAGS += $(call cc-option,-fno-merge-all-constants) KBUILD_CFLAGS += $(call cc-option,-fmerge-constants) # Make sure -fstack-check isn't enabled (like gentoo apparently did) -KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,) +KBUILD_CFLAGS += -fno-stack-check # conserve stack if available KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)