diff options
| author | Andrii Nakryiko <[email protected]> | 2024-02-01 17:20:26 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2024-02-01 21:16:12 +0000 |
| commit | b9551da8cf3ade01a50316df8a618fd945723ee0 (patch) | |
| tree | 697abd705136a3f892e83bbe4f4d9041c774150c /tools/lib/bpf/linker.c | |
| parent | libbpf: Add btf__new_split() API that was declared but not implemented (diff) | |
| download | kernel-b9551da8cf3ade01a50316df8a618fd945723ee0.tar.gz kernel-b9551da8cf3ade01a50316df8a618fd945723ee0.zip | |
libbpf: Add missed btf_ext__raw_data() API
Another API that was declared in libbpf.map but actual implementation
was missing. btf_ext__get_raw_data() was intended as a discouraged alias
to consistently-named btf_ext__raw_data(), so make this an actuality.
Fixes: 20eccf29e297 ("libbpf: hide and discourage inconsistently named getters")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/linker.c')
| -rw-r--r-- | tools/lib/bpf/linker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/linker.c b/tools/lib/bpf/linker.c index 16bca56002ab..0d4be829551b 100644 --- a/tools/lib/bpf/linker.c +++ b/tools/lib/bpf/linker.c @@ -2732,7 +2732,7 @@ static int finalize_btf(struct bpf_linker *linker) /* Emit .BTF.ext section */ if (linker->btf_ext) { - raw_data = btf_ext__get_raw_data(linker->btf_ext, &raw_sz); + raw_data = btf_ext__raw_data(linker->btf_ext, &raw_sz); if (!raw_data) return -ENOMEM; |
