Re: [PATCH] trivial fix for 2.6.11 raid6 compilation on ppc w/ Altivec

From: Rene Rebe
Date: Thu Mar 03 2005 - 23:36:19 EST


Hi,

Greg KH wrote:

Except the patch is malformed, and even after light editing, does not
apply to the 2.6.11 kernel :(

Sorry - to match linux-kernel style I pasted it from gvim into thunderbird to make kernel folks happy. Here you find the patch as it applies to 2.6.11 attached.

Yours,

--
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de/ | http://www.t2-project.org/
+49 (0)30 255 897 45


Tiny compile fix for the raid6 PowerPC/Altivec code.

- Rene Rebe <rene@xxxxxxxxxxxx>

--- linux-2.6.11/drivers/md/raid6altivec.uc.vanilla 2005-03-02 16:44:56.407107752 +0100
+++ linux-2.6.11/drivers/md/raid6altivec.uc 2005-03-02 16:45:22.424152560 +0100
@@ -108,7 +108,7 @@
int raid6_have_altivec(void)
{
/* This assumes either all CPUs have Altivec or none does */
- return cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC;
+ return cur_cpu_spec[0]->cpu_features & CPU_FTR_ALTIVEC;
}
#endif