summaryrefslogtreecommitdiff
path: root/lib/raid6/test/Makefile
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-03 08:21:02 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-03 08:21:02 -0700
commitdc629c211c65ee5c8f1c4976886d4a5f33f50674 (patch)
tree814343b7f638a942794f8aece71132eae8aded3a /lib/raid6/test/Makefile
parent645ff1e8e704c4f33ab1fcd3c87f95cb9b6d7144 (diff)
parente820d55cb99dd93ac2dc949cf486bb187e5cd70d (diff)
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md into for-linus
Pull the pending 4.21 changes for md from Shaohua. * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md: md: fix raid10 hang issue caused by barrier raid10: refactor common wait code from regular read/write request md: remvoe redundant condition check lib/raid6: add option to skip algo benchmarking lib/raid6: sort algos in rough performance order lib/raid6: check for assembler SSSE3 support lib/raid6: avoid __attribute_const__ redefinition lib/raid6: add missing include for raid6test md: remove set but not used variable 'bi_rdev'
Diffstat (limited to 'lib/raid6/test/Makefile')
-rw-r--r--lib/raid6/test/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/raid6/test/Makefile b/lib/raid6/test/Makefile
index 79777645cac9..3ab8720aa2f8 100644
--- a/lib/raid6/test/Makefile
+++ b/lib/raid6/test/Makefile
@@ -34,6 +34,9 @@ endif
ifeq ($(IS_X86),yes)
OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o
+ CFLAGS += $(shell echo "pshufb %xmm0, %xmm0" | \
+ gcc -c -x assembler - >&/dev/null && \
+ rm ./-.o && echo -DCONFIG_AS_SSSE3=1)
CFLAGS += $(shell echo "vpbroadcastb %xmm0, %ymm1" | \
gcc -c -x assembler - >&/dev/null && \
rm ./-.o && echo -DCONFIG_AS_AVX2=1)