[PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()

Hengqi Chen hengqi.chen at gmail.com
Thu Sep 4 03:51:18 PDT 2025


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;
-- 
2.45.2




More information about the linux-riscv mailing list