kbuild: remove cc-option switch from -Wframe-larger-than=
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 16 Feb 2020 15:19:36 +0000 (00:19 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 2 Mar 2020 12:18:19 +0000 (21:18 +0900)
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>
Makefile
lib/Kconfig.debug

index 86035d866f2c0e73cf326980f0d9295173a73581..22bc7cc4b1579c449b2fc0661d30686c47bbc0c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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
index 69def4a9df00916f5b52a931ec1a5eedb95abbef..fb6b93ffdf77f7e55d3b63bb5f67540851c105e0 100644 (file)
@@ -266,7 +266,7 @@ config ENABLE_MUST_CHECK
          attribute warn_unused_result" messages.
 
 config FRAME_WARN
-       int "Warn for stack frames larger than (needs gcc 4.4)"
+       int "Warn for stack frames larger than"
        range 0 8192
        default 2048 if GCC_PLUGIN_LATENT_ENTROPY
        default 1280 if (!64BIT && PARISC)
@@ -276,7 +276,6 @@ config FRAME_WARN
          Tell gcc to warn at build time for stack frames larger than this.
          Setting this too low will cause a lot of warnings.
          Setting it to 0 disables the warning.
-         Requires gcc 4.4
 
 config STRIP_ASM_SYMS
        bool "Strip assembler-generated symbols during link"