summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorYuan Can <yuancan@huawei.com>2022-09-28 12:04:39 +0300
committerAndrii Nakryiko <andrii@kernel.org>2022-10-01 00:08:40 +0300
commitd863f42930db35e82f47e4b4c78531a2b8d396ae (patch)
treeaae35807eaaff25cedbdc753d36edaf6563b4170 /tools
parent5a8921ba96ceaec0c00c8855e48940d2739c5c3b (diff)
downloadlinux-d863f42930db35e82f47e4b4c78531a2b8d396ae.tar.xz
bpftool: Remove unused struct btf_attach_point
After commit 2828d0d75b73 ("bpftool: Switch to libbpf's hashmap for programs/maps in BTF listing"), struct btf_attach_point is not used anymore and can be removed as well. Signed-off-by: Yuan Can <yuancan@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220928090440.79637-2-yuancan@huawei.com
Diffstat (limited to 'tools')
-rw-r--r--tools/bpf/bpftool/btf.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/bpf/bpftool/btf.c b/tools/bpf/bpftool/btf.c
index 0744bd1150be..64411fe49a66 100644
--- a/tools/bpf/bpftool/btf.c
+++ b/tools/bpf/bpftool/btf.c
@@ -43,11 +43,6 @@ static const char * const btf_kind_str[NR_BTF_KINDS] = {
[BTF_KIND_ENUM64] = "ENUM64",
};
-struct btf_attach_point {
- __u32 obj_id;
- __u32 btf_id;
-};
-
static const char *btf_int_enc_str(__u8 encoding)
{
switch (encoding) {