Skip to content

Commit 5f5305d

Browse files
committed
raid6: skip avx512 checks
It is no longer necessary to check for CONFIG_AS_AVX512, since the minimum assembler version is now from binutils-2.30 and this always supports it. Acked-by: Mark Rutland <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 118c40b commit 5f5305d

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

lib/raid6/algos.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ EXPORT_SYMBOL_GPL(raid6_call);
2828

2929
const 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

9793
const 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

lib/raid6/avx512.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
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 */

lib/raid6/recov_avx512.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* Author: Megha Dey <[email protected]>
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

lib/raid6/test/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ endif
5454
ifeq ($(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)
6057
else 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

0 commit comments

Comments
 (0)