From: Hengqi Chen Date: Thu, 4 Sep 2025 10:51:18 +0000 (+0000) Subject: riscv, bpf: Remove duplicated bpf_flush_icache() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6798668ab19557520876d0f7dfabca827ee8b524;p=users%2Fhch%2Fmisc.git riscv, bpf: Remove duplicated bpf_flush_icache() 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 Signed-off-by: Daniel Borkmann Reviewed-by: Pu Lehui Link: https://lore.kernel.org/bpf/20250904105119.21861-1-hengqi.chen@gmail.com --- diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_comp64.c index 2f7188e0340a..886b647dc206 100644 --- a/arch/riscv/net/bpf_jit_comp64.c +++ b/arch/riscv/net/bpf_jit_comp64.c @@ -1269,7 +1269,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;