summaryrefslogtreecommitdiff
path: root/lib/raid6/altivec.uc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/raid6/altivec.uc')
-rw-r--r--lib/raid6/altivec.uc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/raid6/altivec.uc b/lib/raid6/altivec.uc
index 682aae8a1fef..d20ed0d11411 100644
--- a/lib/raid6/altivec.uc
+++ b/lib/raid6/altivec.uc
@@ -24,10 +24,13 @@
#include <linux/raid/pq.h>
+#ifdef CONFIG_ALTIVEC
+
#include <altivec.h>
#ifdef __KERNEL__
# include <asm/cputable.h>
# include <asm/switch_to.h>
+#endif /* __KERNEL__ */
/*
* This is the C data type to use. We use a vector of