From 464edd60a66ad8d93d87a876eb0aa3e0cfeba3b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 13 Nov 2016 11:00:34 +0100 Subject: [PATCH] - enable -Werror=incompatible-pointer-types for all builds --- kernel-rt.patch | 10 ---------- kernel-small_fixes.patch | 12 ++++++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/kernel-rt.patch b/kernel-rt.patch index 41baa928..bf058abe 100644 --- a/kernel-rt.patch +++ b/kernel-rt.patch @@ -317,16 +317,6 @@ index 98239d56924c..5ed3edefebde 100644 -std=gnu89 KBUILD_AFLAGS_KERNEL := -@@ -783,6 +783,9 @@ 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) - diff --git a/arch/Kconfig b/arch/Kconfig index 4e949e58b192..3b26d76933fb 100644 --- a/arch/Kconfig diff --git a/kernel-small_fixes.patch b/kernel-small_fixes.patch index d4b60349..9ce205c9 100644 --- a/kernel-small_fixes.patch +++ b/kernel-small_fixes.patch @@ -26,3 +26,15 @@ exit fi done +--- a/Makefile 2016-11-10 20:41:43.646224629 +0100 ++++ b/Makefile 2016-11-10 20:40:35.640323501 +0100 +@@ -784,6 +774,9 @@ + # 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) + -- 2.44.0