diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-11-24 16:43:17 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-12-08 23:30:05 +0900 |
commit | c93e4aeed1be5b99715a9127f5b38d6b4ab9e5d7 (patch) | |
tree | d3290241fcea25e71e72b5f746774117e183d6d1 /scripts | |
parent | c25ce589dca10d64dde139ae093abc258a32869c (diff) | |
download | linux-stable-c93e4aeed1be5b99715a9127f5b38d6b4ab9e5d7.tar.gz linux-stable-c93e4aeed1be5b99715a9127f5b38d6b4ab9e5d7.tar.bz2 linux-stable-c93e4aeed1be5b99715a9127f5b38d6b4ab9e5d7.zip |
Makefile.extrawarn: remove -Wnested-externs warning
The -Wnested-externs warning has become useless with gcc, since
this warns every time that BUILD_BUG_ON() or similar macros
are used.
With clang, the warning option does nothing to start with, so
just remove it entirely.
Suggested-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.extrawarn | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 6baee1200615..d53825503874 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -61,7 +61,6 @@ endif ifneq ($(findstring 2, $(KBUILD_EXTRA_WARN)),) KBUILD_CFLAGS += -Wdisabled-optimization -KBUILD_CFLAGS += -Wnested-externs KBUILD_CFLAGS += -Wshadow KBUILD_CFLAGS += $(call cc-option, -Wlogical-op) KBUILD_CFLAGS += -Wmissing-field-initializers |