[PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
Pu Lehui
pulehui at huawei.com
Thu Sep 4 18:55:49 PDT 2025
On 2025/9/4 18:51, Hengqi Chen wrote:
> The bpf_flush_icache() is done by bpf_arch_text_copy() already.
> Remove the duplicated one in arch_prepare_bpf_trampoline().
>
> Signed-off-by: Hengqi Chen <hengqi.chen at gmail.com>
> ---
> arch/riscv/net/bpf_jit_comp64.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_comp64.c
> index c7ae4d0a8361..3fcc011c6be4 100644
> --- a/arch/riscv/net/bpf_jit_comp64.c
> +++ b/arch/riscv/net/bpf_jit_comp64.c
> @@ -1305,7 +1305,6 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image,
> goto out;
> }
>
> - bpf_flush_icache(ro_image, ro_image_end);
> out:
> kvfree(image);
> return ret < 0 ? ret : size;
Reviewed-by: Pu Lehui <pulehui at huawei.com>
More information about the linux-riscv
mailing list