diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-08-15 17:19:28 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-08-17 22:42:56 +0200 |
commit | abf84b64e36b175c9c4dd4ecbad2af4329c00041 (patch) | |
tree | 85b3c26128fb7063a19ae071ea52da3e2b76b64d /tools/lib/bpf/libbpf.c | |
parent | libbpf: Streamline bpf_attr and perf_event_attr initialization (diff) | |
download | linux-dev-abf84b64e36b175c9c4dd4ecbad2af4329c00041.tar.xz linux-dev-abf84b64e36b175c9c4dd4ecbad2af4329c00041.zip |
libbpf: Clean up deprecated and legacy aliases
Remove three missed deprecated APIs that were aliased to new APIs:
bpf_object__unload, bpf_prog_attach_xattr and btf__load.
Also move legacy API libbpf_find_kernel_btf (aliased to
btf__load_vmlinux_btf) into libbpf_legacy.h.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Hao Luo <haoluo@google.com>
Link: https://lore.kernel.org/bpf/20220816001929.369487-4-andrii@kernel.org
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
-rw-r--r-- | tools/lib/bpf/libbpf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 21fc3fc7f44c..3ad139285fad 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -7263,8 +7263,6 @@ static int bpf_object_unload(struct bpf_object *obj) return 0; } -int bpf_object__unload(struct bpf_object *obj) __attribute__((alias("bpf_object_unload"))); - static int bpf_object__sanitize_maps(struct bpf_object *obj) { struct bpf_map *m; |