diff options
author | Rafael Passos <rafael@rcpassos.me> | 2024-06-15 05:24:08 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-06-21 05:50:26 +0300 |
commit | 9919c5c98cb25dbf7e76aadb9beab55a2a25f830 (patch) | |
tree | c399342992d107b9aa03abe120d9950ba635073d /arch/arm64/net | |
parent | 3b06304370931f90cd6f50ea9dd55603429b13dc (diff) | |
download | linux-9919c5c98cb25dbf7e76aadb9beab55a2a25f830.tar.xz |
bpf: remove unused parameter in bpf_jit_binary_pack_finalize
Fixes a compiler warning. the bpf_jit_binary_pack_finalize function
was taking an extra bpf_prog parameter that went unused.
This removves it and updates the callers accordingly.
Signed-off-by: Rafael Passos <rafael@rcpassos.me>
Link: https://lore.kernel.org/r/20240615022641.210320-2-rafael@rcpassos.me
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch/arm64/net')
-rw-r--r-- | arch/arm64/net/bpf_jit_comp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c index 720336d28856..6edaeafd1499 100644 --- a/arch/arm64/net/bpf_jit_comp.c +++ b/arch/arm64/net/bpf_jit_comp.c @@ -1829,8 +1829,7 @@ skip_init_ctx: prog->jited_len = 0; goto out_free_hdr; } - if (WARN_ON(bpf_jit_binary_pack_finalize(prog, ro_header, - header))) { + if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { /* ro_header has been freed */ ro_header = NULL; prog = orig_prog; |