diff options
author | Rafael Passos <rafael@rcpassos.me> | 2024-06-14 23:24:08 -0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-06-20 19:50:26 -0700 |
commit | 9919c5c98cb25dbf7e76aadb9beab55a2a25f830 (patch) | |
tree | c399342992d107b9aa03abe120d9950ba635073d /kernel/bpf/core.c | |
parent | 3b06304370931f90cd6f50ea9dd55603429b13dc (diff) | |
download | lwn-9919c5c98cb25dbf7e76aadb9beab55a2a25f830.tar.gz lwn-9919c5c98cb25dbf7e76aadb9beab55a2a25f830.zip |
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 'kernel/bpf/core.c')
-rw-r--r-- | kernel/bpf/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 1a6c3faa6e4a..f6951c33790d 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -1174,8 +1174,7 @@ bpf_jit_binary_pack_alloc(unsigned int proglen, u8 **image_ptr, } /* Copy JITed text from rw_header to its final location, the ro_header. */ -int bpf_jit_binary_pack_finalize(struct bpf_prog *prog, - struct bpf_binary_header *ro_header, +int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header, struct bpf_binary_header *rw_header) { void *ptr; |