mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Paul Walmsley
parent
724c694479
commit
6fcce9f028
@@ -20,6 +20,10 @@ static int rvv_has_vector(void)
|
||||
return has_vector();
|
||||
}
|
||||
|
||||
#ifdef __riscv_vector
|
||||
#error "This code must be built without compiler support for vector"
|
||||
#endif
|
||||
|
||||
static void raid6_rvv1_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
|
||||
{
|
||||
u8 **dptr = (u8 **)ptrs;
|
||||
|
||||
Reference in New Issue
Block a user