kbuild: Add a comment above -Wno-gnu
[sfrench/cifs-2.6.git] / Makefile
index add32a7498607fbf1df7dfe76096da70705badd4..8dc6707542a818221b76b848e63e79cfd7939098 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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.