# HG changeset patch # User Rob Landley # Date 1397742424 18000 # Node ID b53d7469b70e1024e93d6f6a9667a9dc8838b5b1 # Parent a242ea5d6bb42bdc60bfb52eb11dd4a0d967bb09 Fix the powerpc build breakage in current linux kernels. diff -r a242ea5d6bb4 -r b53d7469b70e sources/patches/linux-powerpc-altivec.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/linux-powerpc-altivec.patch Thu Apr 17 08:47:04 2014 -0500 @@ -0,0 +1,23 @@ +After commit ef1313deafb7 attempting to build xor_vmx.c died with: + +In file included from include/linux/thread_info.h:10, + from include/linux/preempt.h:9, + from arch/powerpc/lib/xor_vmx.c:22: +include/linux/types.h:29: error: both 'unsigned' and '_Bool' in declaration specifiers + +Because gcc's altivec.h was #defining bool to __bool and then the kernel was +trying to typedef bool later. Out of morbid curiosity I tried copying a 2012 +version of the header, and it made no difference. + +diff --git a/arch/powerpc/lib/xor_vmx.c b/arch/powerpc/lib/xor_vmx.c +index e905f7c..fbb1e2c 100644 +--- a/arch/powerpc/lib/xor_vmx.c ++++ b/arch/powerpc/lib/xor_vmx.c +@@ -18,6 +18,7 @@ + * Author: Anton Blanchard + */ + #include ++#undef bool + + #include + #include