aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8da3a306d0c0..48990899db0d 100644
--- a/Makefile
+++ b/Makefile
@@ -332,9 +332,7 @@ KALLSYMS = scripts/kallsyms
332PERL = perl 332PERL = perl
333CHECK = sparse 333CHECK = sparse
334 334
335NOSTDINC_FLAGS = -nostdinc -isystem $(shell $(CC) -print-file-name=include)
336CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ 335CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__
337CHECKFLAGS += $(NOSTDINC_FLAGS)
338MODFLAGS = -DMODULE 336MODFLAGS = -DMODULE
339CFLAGS_MODULE = $(MODFLAGS) 337CFLAGS_MODULE = $(MODFLAGS)
340AFLAGS_MODULE = $(MODFLAGS) 338AFLAGS_MODULE = $(MODFLAGS)
@@ -531,6 +529,10 @@ endif
531 529
532include $(srctree)/arch/$(ARCH)/Makefile 530include $(srctree)/arch/$(ARCH)/Makefile
533 531
532# arch Makefile may override CC so keep this after arch Makefile is included
533NOSTDINC_FLAGS := -nostdinc -isystem $(shell $(CC) -print-file-name=include)
534CHECKFLAGS += $(NOSTDINC_FLAGS)
535
534# warn about C99 declaration after statement 536# warn about C99 declaration after statement
535CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) 537CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
536 538