aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index de004ceb6b5e..c060363f11c3 100644
--- a/Makefile
+++ b/Makefile
@@ -659,6 +659,12 @@ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
659# conserve stack if available 659# conserve stack if available
660KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) 660KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
661 661
662# disallow errors like 'EXPORT_GPL(foo);' with missing header
663KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int)
664
665# require functions to have arguments in prototypes, not empty 'int foo()'
666KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes)
667
662# use the deterministic mode of AR if available 668# use the deterministic mode of AR if available
663KBUILD_ARFLAGS := $(call ar-option,D) 669KBUILD_ARFLAGS := $(call ar-option,D)
664 670