[packages/kernel/LINUX_4_4] - enable -Werror=incompatible-pointer-types for all builds

baggins baggins at pld-linux.org
Sun Nov 13 11:00:53 CET 2016


commit 464edd60a66ad8d93d87a876eb0aa3e0cfeba3b0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 13 11:00:34 2016 +0100

    - 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 41baa92..bf058ab 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 d4b6034..9ce205c 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)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/464edd60a66ad8d93d87a876eb0aa3e0cfeba3b0



More information about the pld-cvs-commit mailing list