[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <5c879527-221e-45df-86ea-b564ee49c473@lanxincomputing.com>
Date: Mon, 21 Jul 2025 15:52:11 +0800
From: "Nutty Liu" <liujingqi@...xincomputing.com>
To: "Chunyan Zhang" <zhangchunyan@...as.ac.cn>,
"Paul Walmsley" <paul.walmsley@...ive.com>,
"Palmer Dabbelt" <palmer@...belt.com>,
"Albert Ou" <aou@...s.berkeley.edu>, "Alexandre Ghiti" <alex@...ti.fr>,
"Charlie Jenkins" <charlie@...osinc.com>, "Song Liu" <song@...nel.org>,
"Yu Kuai" <yukuai3@...wei.com>
Cc: <linux-riscv@...ts.infradead.org>, <linux-raid@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, "Chunyan Zhang" <zhang.lyra@...il.com>
Subject: Re: [PATCH V2 1/5] raid6: riscv: Clean up unused header file inclusion
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@...as.ac.cn>
> ---
> lib/raid6/recov_rvv.c | 2 --
> lib/raid6/rvv.c | 3 ---
> 2 files changed, 5 deletions(-)
Reviewed-by: Nutty Liu <liujingqi@...xincomputing.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@...as.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 */
Powered by blists - more mailing lists