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

raid6: riscv: Prevent compiler from breaking inline vector assembly code

To prevent the compiler from breaking the inline vector assembly code,
this code must be built without compiler support for vector.

Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
Link: https://patch.msgid.link/20250718072711.3865118-4-zhangchunyan@iscas.ac.cn
[pjw@kernel.org: cleaned up commit message]
Signed-off-by: Paul Walmsley <pjw@kernel.org>

authored by

Chunyan Zhang and committed by
Paul Walmsley
6fcce9f0 724c6944

+4
+4
lib/raid6/rvv.c
··· 20 20 return has_vector(); 21 21 } 22 22 23 + #ifdef __riscv_vector 24 + #error "This code must be built without compiler support for vector" 25 + #endif 26 + 23 27 static void raid6_rvv1_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs) 24 28 { 25 29 u8 **dptr = (u8 **)ptrs;