[v2,11/11,EXPERIMENTAL] Kbuild: enable -Wmissing-include-dirs by default

Submitted by Arnd Bergmann on June 15, 2016, 3:45 p.m.


Message ID 20160615154553.3177021-12-arnd@arndb.de
State New
Headers show
Series "Kbuild: fix -Wmissing-include-path warnings" ( rev: 2 1 ) in DRI devel

Not browsing as part of any series.

Commit Message

Arnd Bergmann June 15, 2016, 3:45 p.m.
I have fixed up all -Wmissing-include-dirs on ARM randconfig builds,
so we could make this the default, but I have not tested this at all
on other architectures.

This enables it anyway, just to see what other warnings we get
when the build bot analyses the branch.

Don't apply (yet).

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/Makefile b/Makefile
index 969924783543..2305cbd61e60 100644
--- a/Makefile
+++ b/Makefile
@@ -781,6 +781,9 @@  endif
 NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
+# warn about incorrect -I include paths
+KBUILD_CFLAGS += -Wmissing-include-dirs
 # warn about C99 declaration after statement
 KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)