X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=Makefile;h=7ab985d60cc08f6eef19f75ce8cadf9920a89e48;hb=1e27ab4d297fda68b0f2cdb6b274108c2a4a350e;hp=126321d2e6ad6a3c594280ca1102e0b25c7e4dd3;hpb=eaa1338932ea94e0651a734264d736f6fdb5d12e;p=karo-tx-linux.git diff --git a/Makefile b/Makefile index 126321d2e6ad..7ab985d60cc0 100644 --- a/Makefile +++ b/Makefile @@ -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)