aboutsummaryrefslogtreecommitdiffstats
path: root/lib/raid6/algos.c
diff options
context:
space:
mode:
authorJan Beulich <[email protected]>2015-01-23 08:29:50 +0000
committerNeilBrown <[email protected]>2015-02-03 21:35:51 +0000
commit75aaf4c3e6a4ed48207230cf133a02258ca5abd5 (patch)
tree4d4eba8a7ead427b30f41b0566838e8ff5b91688 /lib/raid6/algos.c
parentmd/bitmap: fix a might_sleep() warning. (diff)
downloadkernel-75aaf4c3e6a4ed48207230cf133a02258ca5abd5.tar.gz
kernel-75aaf4c3e6a4ed48207230cf133a02258ca5abd5.zip
x86/raid6: correctly check for assembler capabilities
Just like for AVX2 (which simply needs an #if -> #ifdef conversion), SSSE3 assembler support should be checked for before using it. Signed-off-by: Jan Beulich <[email protected]> Cc: Jim Kukunas <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'lib/raid6/algos.c')
-rw-r--r--lib/raid6/algos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c
index 7d0e5cd7b570..dbef2314901e 100644
--- a/lib/raid6/algos.c
+++ b/lib/raid6/algos.c
@@ -89,10 +89,10 @@ void (*raid6_datap_recov)(int, size_t, int, void **);
EXPORT_SYMBOL_GPL(raid6_datap_recov);
const struct raid6_recov_calls *const raid6_recov_algos[] = {
-#if (defined(__i386__) || defined(__x86_64__)) && !defined(__arch_um__)
#ifdef CONFIG_AS_AVX2
&raid6_recov_avx2,
#endif
+#ifdef CONFIG_AS_SSSE3
&raid6_recov_ssse3,
#endif
&raid6_recov_intx1,