diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-02-17 00:19:36 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-03-02 21:18:19 +0900 |
commit | a83e4ca26af8fcf1e0d1a3fb681732e239ef5496 (patch) | |
tree | 87d82ce38b43c0bbee5108630495775305c8f7c9 /Makefile | |
parent | f84fdf8df1c15f1e66478340bf0da5449f30a0af (diff) | |
download | linux-a83e4ca26af8fcf1e0d1a3fb681732e239ef5496.tar.bz2 |
kbuild: remove cc-option switch from -Wframe-larger-than=
This CONFIG option was added by commit 35bb5b1e0e84 ("Add option to
enable -Wframe-larger-than= on gcc 4.4"). At that time, the cc-option
check was needed.
According to Documentation/process/changes.rst, the current minimal
supported version of GCC is 4.6, so you can assume GCC supports it.
Clang supports it as well.
Remove the cc-option switch and redundant comments.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -729,7 +729,7 @@ KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \ endif ifneq ($(CONFIG_FRAME_WARN),0) -KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN}) +KBUILD_CFLAGS += -Wframe-larger-than=$(CONFIG_FRAME_WARN) endif stackp-flags-$(CONFIG_CC_HAS_STACKPROTECTOR_NONE) := -fno-stack-protector |