summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid6.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2005-09-16 19:27:29 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-17 11:49:58 -0700
commitd7e70ba45fd9850296ebb78ff5827f6a375f650c (patch)
tree26c5eba7ce9386b756e0d7cae93a9d4fc419471d /drivers/md/raid6.h
parent0d0fc3a2d6901bdedd8497acdb3358e2da9abefc (diff)
downloadlinux-d7e70ba45fd9850296ebb78ff5827f6a375f650c.tar.bz2
[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 <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid6.h')
-rw-r--r--drivers/md/raid6.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/raid6.h b/drivers/md/raid6.h
index f80ee6350edf..31cbee71365f 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__ */