From d7e70ba45fd9850296ebb78ff5827f6a375f650c Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 16 Sep 2005 19:27:29 -0700 Subject: [PATCH] RAID6 Altivec fix This patch fixes a signedness bug with RAID6 for Altivec, and makes the Altivec code testable in userspace. Signed-off-by: H. Peter Anvin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/md/raid6.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/md/raid6.h') diff --git a/drivers/md/raid6.h b/drivers/md/raid6.h index f80ee6350ed..31cbee71365 100644 --- a/drivers/md/raid6.h +++ b/drivers/md/raid6.h @@ -69,9 +69,13 @@ extern const char raid6_empty_zero_page[PAGE_SIZE]; #define __init #define __exit #define __attribute_const__ __attribute__((const)) +#define noinline __attribute__((noinline)) #define preempt_enable() #define preempt_disable() +#define cpu_has_feature(x) 1 +#define enable_kernel_altivec() +#define disable_kernel_altivec() #endif /* __KERNEL__ */ -- cgit v1.2.3-70-g09d2