[PATCH V2 1/5] raid6: riscv: Clean up unused header file inclusion
Nutty Liu
liujingqi at lanxincomputing.com
Mon Jul 21 00:52:11 PDT 2025
On 7/11/2025 6:09 PM, Chunyan Zhang wrote:
> These two C files don't reference things defined in simd.h or types.h
> so remove these redundant #inclusions.
>
> Fixes: 6093faaf9593 ("raid6: Add RISC-V SIMD syndrome and recovery calculations")
> Signed-off-by: Chunyan Zhang <zhangchunyan at iscas.ac.cn>
> ---
> lib/raid6/recov_rvv.c | 2 --
> lib/raid6/rvv.c | 3 ---
> 2 files changed, 5 deletions(-)
Reviewed-by: Nutty Liu <liujingqi at lanxincomputing.com>
Thanks,
Nutty
> diff --git a/lib/raid6/recov_rvv.c b/lib/raid6/recov_rvv.c
> index f29303795ccf..500da521a806 100644
> --- a/lib/raid6/recov_rvv.c
> +++ b/lib/raid6/recov_rvv.c
> @@ -4,9 +4,7 @@
> * Author: Chunyan Zhang <zhangchunyan at iscas.ac.cn>
> */
>
> -#include <asm/simd.h>
> #include <asm/vector.h>
> -#include <crypto/internal/simd.h>
> #include <linux/raid/pq.h>
>
> static int rvv_has_vector(void)
> diff --git a/lib/raid6/rvv.c b/lib/raid6/rvv.c
> index 7d82efa5b14f..b193ea176d5d 100644
> --- a/lib/raid6/rvv.c
> +++ b/lib/raid6/rvv.c
> @@ -9,11 +9,8 @@
> * Copyright 2002-2004 H. Peter Anvin
> */
>
> -#include <asm/simd.h>
> #include <asm/vector.h>
> -#include <crypto/internal/simd.h>
> #include <linux/raid/pq.h>
> -#include <linux/types.h>
> #include "rvv.h"
>
> #define NSIZE (riscv_v_vsize / 32) /* NSIZE = vlenb */
More information about the linux-riscv
mailing list