From: Ingo Molnar Date: Sat, 5 Mar 2016 13:57:38 +0000 (+0100) Subject: Revert "kbuild: Add option to turn incompatible pointer check into error" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca031745fdfc38fed0b9da89bd07e332fce96520;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Revert "kbuild: Add option to turn incompatible pointer check into error" This reverts commit ef50c046338948df9f23fb5ef853efda0274c7b3. So adding -Werror=incompatible-pointer-types wasn't a bad idea, but it should really not be done in the scheduler tree: it exposes us to a number of pre-existing warnings (most of them harmless), now upgraded to build failures... This should be done via the kbuild tree. Cc: Daniel Wagner Cc: Thomas Gleixner Cc: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: linux-rt-users@vger.kernel.org Cc: Boqun Feng Cc: Marcelo Tosatti Cc: Steven Rostedt Cc: Paul Gortmaker Cc: Paolo Bonzini Cc: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org --- diff --git a/Makefile b/Makefile index db2bc432b944..af6e5f893d56 100644 --- a/Makefile +++ b/Makefile @@ -773,9 +773,6 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes) # Prohibit date/time macros, which would make the build non-deterministic KBUILD_CFLAGS += $(call cc-option,-Werror=date-time) -# enforce correct pointer usage -KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types) - # use the deterministic mode of AR if available KBUILD_ARFLAGS := $(call ar-option,D)