diff options
| author | Andrii Nakryiko <[email protected]> | 2022-08-16 00:19:28 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-08-17 20:42:56 +0000 |
| commit | abf84b64e36b175c9c4dd4ecbad2af4329c00041 (patch) | |
| tree | 85b3c26128fb7063a19ae071ea52da3e2b76b64d /tools/lib/bpf/libbpf.c | |
| parent | libbpf: Streamline bpf_attr and perf_event_attr initialization (diff) | |
| download | kernel-abf84b64e36b175c9c4dd4ecbad2af4329c00041.tar.gz kernel-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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Hao Luo <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
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; |
