Skip to content

Commit e7b593c

Browse files
chenhengqiKernel Patches Daemon
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 <[email protected]>
1 parent 4e70ac0 commit e7b593c

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)