]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
raid6: riscv: Allow code to be compiled in userspace
authorChunyan Zhang <zhangchunyan@iscas.ac.cn>
Tue, 18 Nov 2025 04:19:25 +0000 (21:19 -0700)
committerPaul Walmsley <pjw@kernel.org>
Wed, 19 Nov 2025 16:19:28 +0000 (09:19 -0700)
commit3c58d7a51341fa032eda45d8b9904dbfae120ef5
treece34565e76fdd41ddad24ae4b96dc711f10e9a83
parent6fcce9f028fb75ce03e4221f5f4f652741d178c4
raid6: riscv: Allow code to be compiled in userspace

To support userspace raid6test, this patch adds __KERNEL__ ifdef for kernel
header inclusions also userspace wrapper definitions to allow code to be
compiled in userspace.

This patch also drops the NSIZE macro, instead of using the vector length,
which can work for both kernel and user space.

Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
Link: https://patch.msgid.link/20250718072711.3865118-5-zhangchunyan@iscas.ac.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
lib/raid6/recov_rvv.c
lib/raid6/rvv.c
lib/raid6/rvv.h