aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-23 12:04:28 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-23 12:04:28 -0600
commit512a00ddebbe5294a88487dcf1dc845cf56703d9 (patch)
tree5bf9050f907e6d57a4f90ab2a36ba819ed23ff44
parentcrypto: curve25519 - do not pollute dispatcher based on assembler (diff)
downloadlinux-dev-512a00ddebbe5294a88487dcf1dc845cf56703d9.tar.xz
linux-dev-512a00ddebbe5294a88487dcf1dc845cf56703d9.zip
raid6: guard ssse3 implementation with ifdef
Otherwise this code is included on all platforms, all but one of which don't define the ssse3 function. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--lib/raid6/algos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c
index 77457ea5a239..2af3849c0007 100644
--- a/lib/raid6/algos.c
+++ b/lib/raid6/algos.c
@@ -97,6 +97,7 @@ 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(__x86_64__) && !defined(__arch_um__)
#ifdef CONFIG_AS_AVX512
&raid6_recov_avx512,
#endif
@@ -104,6 +105,7 @@ const struct raid6_recov_calls *const raid6_recov_algos[] = {
&raid6_recov_avx2,
#endif
&raid6_recov_ssse3,
+#endif
#ifdef CONFIG_S390
&raid6_recov_s390xc,
#endif