|
@@ -659,6 +659,12 @@ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
|
|
|
# conserve stack if available
|
|
|
KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
|
|
|
|
|
|
+# disallow errors like 'EXPORT_GPL(foo);' with missing header
|
|
|
+KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int)
|
|
|
+
|
|
|
+# require functions to have arguments in prototypes, not empty 'int foo()'
|
|
|
+KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes)
|
|
|
+
|
|
|
# use the deterministic mode of AR if available
|
|
|
KBUILD_ARFLAGS := $(call ar-option,D)
|
|
|
|