File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,10 +28,8 @@ EXPORT_SYMBOL_GPL(raid6_call);
2828
2929const struct raid6_calls * const raid6_algos [] = {
3030#if defined(__i386__ ) && !defined(__arch_um__ )
31- #ifdef CONFIG_AS_AVX512
3231 & raid6_avx512x2 ,
3332 & raid6_avx512x1 ,
34- #endif
3533 & raid6_avx2x2 ,
3634 & raid6_avx2x1 ,
3735 & raid6_sse2x2 ,
@@ -42,11 +40,9 @@ const struct raid6_calls * const raid6_algos[] = {
4240 & raid6_mmxx1 ,
4341#endif
4442#if defined(__x86_64__ ) && !defined (__arch_um__ )
45- #ifdef CONFIG_AS_AVX512
4643 & raid6_avx512x4 ,
4744 & raid6_avx512x2 ,
4845 & raid6_avx512x1 ,
49- #endif
5046 & raid6_avx2x4 ,
5147 & raid6_avx2x2 ,
5248 & raid6_avx2x1 ,
@@ -96,9 +92,7 @@ EXPORT_SYMBOL_GPL(raid6_datap_recov);
9692
9793const struct raid6_recov_calls * const raid6_recov_algos [] = {
9894#ifdef CONFIG_X86
99- #ifdef CONFIG_AS_AVX512
10095 & raid6_recov_avx512 ,
101- #endif
10296 & raid6_recov_avx2 ,
10397 & raid6_recov_ssse3 ,
10498#endif
Original file line number Diff line number Diff line change 1717 *
1818 */
1919
20- #ifdef CONFIG_AS_AVX512
21-
2220#include <linux/raid/pq.h>
2321#include "x86.h"
2422
@@ -560,5 +558,3 @@ const struct raid6_calls raid6_avx512x4 = {
560558 .priority = 2 /* Prefer AVX512 over priority 1 (SSE2 and others) */
561559};
562560#endif
563-
564- #endif /* CONFIG_AS_AVX512 */
Original file line number Diff line number Diff line change 66 * Author: Megha Dey <megha.dey@linux.intel.com>
77 */
88
9- #ifdef CONFIG_AS_AVX512
10-
119#include <linux/raid/pq.h>
1210#include "x86.h"
1311
@@ -377,7 +375,3 @@ const struct raid6_recov_calls raid6_recov_avx512 = {
377375#endif
378376 .priority = 3 ,
379377};
380-
381- #else
382- #warning "your version of binutils lacks AVX512 support"
383- #endif
Original file line number Diff line number Diff line change 5454ifeq ($(IS_X86 ) ,yes)
5555 OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o
5656 CFLAGS += -DCONFIG_X86
57- CFLAGS += $(shell echo "vpmovm2b % k1, % zmm5" | \
58- gcc -c -x assembler - >/dev/null 2>&1 && \
59- rm ./-.o && echo -DCONFIG_AS_AVX512=1)
6057else ifeq ($(HAS_NEON),yes)
6158 OBJS += neon.o neon1.o neon2.o neon4.o neon8.o recov_neon.o recov_neon_inner.o
6259 CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1
You can’t perform that action at this time.
0 commit comments