riscv, bpf: Remove duplicated bpf_flush_icache()
Subsystems (3)
PATCH 1/1 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().
--- arch/riscv/net/bpf_jit_comp64.c | 1 - 1 file changed, 1 deletion(-)
arch/riscv/net/bpf_jit_comp64.c +0 -1
@@ -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;
Signature · 1 line
2.45.2
Quoted 13 lines · Hengqi Chen
The
bpf_flush_icache()is done bybpf_arch_text_copy()already. Remove the duplicated one inarch_prepare_bpf_trampoline().Signed-off-by Hengqi Chen <[email protected]>--- arch/riscv/net/bpf_jit_comp64.c | 1 - 1 file changed, 1 deletion(-)arch/riscv/net/bpf_jit_comp64.c +0
-0
arch/riscv/net/bpf_jit_comp64.c int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image, · line 1310
Quoted 7 lines
arch/riscv/net/bpf_jit_comp64.c +0
-1@@ -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;
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Quoted 7 lines · On Thu, 4 Sep 2025 10:51:18 +0000 you wrote:
The
bpf_flush_icache()is done bybpf_arch_text_copy()already. Remove the duplicated one inarch_prepare_bpf_trampoline().Signed-off-by Hengqi Chen <[email protected]>--- arch/riscv/net/bpf_jit_comp64.c | 1 - 1 file changed, 1 deletion(-)
Here is the summary with links:
- [bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
https://git.kernel.org/bpf/bpf-next/c/6798668ab195
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
This patch was applied to riscv/linux.git (for-next) by Daniel Borkmann <[email protected]>:
Hello:
This patch was applied to riscv/linux.git (for-next) by Daniel Borkmann <[email protected]>:
Quoted 7 lines · On Thu, 4 Sep 2025 10:51:18 +0000 you wrote:
The
bpf_flush_icache()is done bybpf_arch_text_copy()already. Remove the duplicated one inarch_prepare_bpf_trampoline().Signed-off-by Hengqi Chen <[email protected]>--- arch/riscv/net/bpf_jit_comp64.c | 1 - 1 file changed, 1 deletion(-)
Here is the summary with links:
- [bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
https://git.kernel.org/riscv/c/6798668ab195
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html