Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

raid6: test: Add support for RISC-V

Add RISC-V code to be compiled to allow the userspace raid6test program
to be built and run on RISC-V.

Signed-off-by: Chunyan Zhang <zhang.lyra@gmail.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://patch.msgid.link/20250718072711.3865118-6-zhangchunyan@iscas.ac.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>

authored by

Chunyan Zhang and committed by
Paul Walmsley
3ac022bf 3c58d7a5

+8
+8
lib/raid6/test/Makefile
··· 35 35 HAS_NEON = yes 36 36 endif 37 37 38 + ifeq ($(findstring riscv,$(ARCH)),riscv) 39 + CFLAGS += -I../../../arch/riscv/include -DCONFIG_RISCV=1 40 + HAS_RVV = yes 41 + endif 42 + 38 43 ifeq ($(findstring ppc,$(ARCH)),ppc) 39 44 CFLAGS += -I../../../arch/powerpc/include 40 45 HAS_ALTIVEC := $(shell printf '$(pound)include <altivec.h>\nvector int a;\n' |\ ··· 68 63 vpermxor1.o vpermxor2.o vpermxor4.o vpermxor8.o 69 64 else ifeq ($(ARCH),loongarch64) 70 65 OBJS += loongarch_simd.o recov_loongarch_simd.o 66 + else ifeq ($(HAS_RVV),yes) 67 + OBJS += rvv.o recov_rvv.o 68 + CFLAGS += -DCONFIG_RISCV_ISA_V=1 71 69 endif 72 70 73 71 .c.o: