]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: Adjust argument names of arch_prepare_bpf_trampoline()
authorSong Liu <song@kernel.org>
Wed, 6 Dec 2023 22:40:49 +0000 (14:40 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 7 Dec 2023 01:17:20 +0000 (17:17 -0800)
commit7a3d9a159b178e87306a6e989071ed9a114a1a31
tree1b447beb17e72ffcf7eef17b14131ef786f7d181
parentf08a1c658257c73697a819c4ded3a84b6f0ead74
bpf: Adjust argument names of arch_prepare_bpf_trampoline()

We are using "im" for "struct bpf_tramp_image" and "tr" for "struct
bpf_trampoline" in most of the code base. The only exception is the
prototype and fallback version of arch_prepare_bpf_trampoline(). Update
them to match the rest of the code base.

We mix "orig_call" and "func_addr" for the argument in different versions
of arch_prepare_bpf_trampoline(). s/orig_call/func_addr/g so they match.

Signed-off-by: Song Liu <song@kernel.org>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com> # on s390x
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20231206224054.492250-3-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/arm64/net/bpf_jit_comp.c
include/linux/bpf.h
kernel/bpf/trampoline.c