]> Git Repo - linux.git/commitdiff
kbuild: $(CHECK) doesnt need NOSTDINC_FLAGS twice
authorLuc Van Oostenryck <[email protected]>
Mon, 28 May 2018 13:47:22 +0000 (15:47 +0200)
committerMasahiro Yamada <[email protected]>
Tue, 29 May 2018 13:04:47 +0000 (22:04 +0900)
Currently, $(CHECK) receives NOSTDINC_FLAGS twice:
* first directly in the main Makefile via CHECKFLAGS,
* then indirectly in scripts/Makefile.build via c_flags.

Since once is enough, leave the occurence via c_flags and
remove the one via CHECKFLAGS.

Signed-off-by: Luc Van Oostenryck <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Makefile

index 52ea534f51731b79351026f2b1a340180bf792e4..1617ab517819fff15f95b944ec25783cbbadb77e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -805,7 +805,6 @@ endif
 
 # arch Makefile may override CC so keep this after arch Makefile is included
 NOSTDINC_FLAGS += -nostdinc -isystem $(call shell-cached,$(CC) -print-file-name=include)
-CHECKFLAGS     += $(NOSTDINC_FLAGS)
 
 # warn about C99 declaration after statement
 KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
This page took 0.061431 seconds and 4 git commands to generate.