X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Makefile;h=920ad07180c9c7157c2ca3b5b1175059eb3e8b8e;hb=74a1b1ea8a30b035aaad833bbd6b9263e72acfac;hp=606a66cdcdb88e6e1b7d214dc7f87921c59e025d;hpb=d320e203bad4cfcef3613e83a52f8c70a77e8a60;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/Makefile b/Makefile index 606a66c..920ad07 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,9 @@ LC_COLLATE=C LC_NUMERIC=C export LC_COLLATE LC_NUMERIC +# Avoid interference with shell env settings +unexport GREP_OPTIONS + # We are using a recursive build, so we need to do a little thinking # to get the ordering right. # @@ -659,6 +662,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)