Skip to content

Commit 6798668

Browse files
chenhengqiborkmann
authored andcommitted
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 <hengqi.chen@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Pu Lehui <pulehui@huawei.com> Link: https://lore.kernel.org/bpf/20250904105119.21861-1-hengqi.chen@gmail.com
1 parent a578b54 commit 6798668

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/riscv/net/bpf_jit_comp64.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,6 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image,
12691269
goto out;
12701270
}
12711271

1272-
bpf_flush_icache(ro_image, ro_image_end);
12731272
out:
12741273
kvfree(image);
12751274
return ret < 0 ? ret : size;

0 commit comments

Comments
 (0)