diff options
author | Nathan Chancellor <nathan@kernel.org> | 2021-08-16 13:20:55 -0700 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-09-03 08:17:20 +0900 |
commit | 5c6ae0efca8d7aeac02f8734825067cd9475a264 (patch) | |
tree | 4b7c70db950601ddb3a0f19adb72bdd1680de4f2 /Makefile | |
parent | a312b60d6c4f09cebb727ffab68754fbf39dc1f1 (diff) | |
download | linux-5c6ae0efca8d7aeac02f8734825067cd9475a264.tar.bz2 |
kbuild: Add a comment above -Wno-gnu
Whenever a warning is disabled, it is helpful for future travelers to
understand why the warning is disabled and why it is acceptable to do
so. Add a comment for -Wno-gnu so that people understand why it is
disabled.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -782,6 +782,7 @@ KBUILD_CFLAGS += $(stackp-flags-y) ifdef CONFIG_CC_IS_CLANG KBUILD_CPPFLAGS += -Qunused-arguments +# The kernel builds with '-std=gnu89' so use of GNU extensions is acceptable. KBUILD_CFLAGS += -Wno-gnu # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the # source of a reference will be _MergedGlobals and not on of the whitelisted names. |