Skip to contentSkip to conversation

raid6altivec does not compile on ppc32

DISCUSSION Andreas Schwab 3 participants 3 messages Feb 25, 2005

lore
Share & tools
lore
#0 lore raw

On ppc32 cur_cpu_spec is an array of pointers, not just a pointer like on ppc64.

drivers/md/raid6altivec1.c: In function `raid6_have_altivec':
drivers/md/raid6altivec1.c:111: error: request for member `cpu_features' in something not a structure or union

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#1 lore raw
Quoted 6 lines · Andreas Schwab

On ppc32 cur_cpu_spec is an array of pointers, not just a pointer like on ppc64.

drivers/md/raid6altivec1.c: In function `raid6_have_altivec':
drivers/md/raid6altivec1.c:111: error: request for member `cpu_features' in something not a structure or union

I think this is being discussed on the ppc development list. It's apparently turned into a "we have a problem, let's fix it the right way."

-hpa

#2 lore raw
Quoted 11 lines · H. Peter Anvin
Quoted 7 lines · Andreas Schwab

On ppc32 cur_cpu_spec is an array of pointers, not just a pointer like on ppc64.

drivers/md/raid6altivec1.c: In function `raid6_have_altivec':
drivers/md/raid6altivec1.c:111: error: request for member `cpu_features' in something not a structure or union

I think this is being discussed on the ppc development list. It's apparently turned into a "we have a problem, let's fix it the right way."

cpu_has_feature() is in 2.6.11-rc4-mm1, it takes care of it.

-Olof