diff options
author | Matt Brown <matthew.brown.dev@gmail.com> | 2017-08-04 05:42:33 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-20 06:47:52 +0100 |
commit | aa9532d4899ff14e50de10d261b761d157cd2ae3 (patch) | |
tree | 373ef653ad6ea18f7aae0ca9973a5ad17a7b53da /lib/raid6/altivec.uc | |
parent | lib/raid6/altivec: Add vpermxor implementation for raid6 Q syndrome (diff) | |
download | linux-aa9532d4899ff14e50de10d261b761d157cd2ae3.tar.xz linux-aa9532d4899ff14e50de10d261b761d157cd2ae3.zip |
lib/raid6: Build proper raid6test files on powerpc
Previously the raid6 test Makefile did not build the POWER specific files
(altivec and vpermxor).
This patch fixes the bug, so that all appropriate files for powerpc are built.
This patch also fixes the missing and mismatched ifdef statements to allow the
altivec.uc file to be built correctly.
Signed-off-by: Matt Brown <matthew.brown.dev@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'lib/raid6/altivec.uc')
-rw-r--r-- | lib/raid6/altivec.uc | 3 |
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 |