Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'tools: bpftool: Remove unused struct'

Yuan Can says:

====================
This series contains two cleanup patches, remove unused struct.
====================

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>

-12
-5
tools/bpf/bpftool/btf.c
··· 43 43 [BTF_KIND_ENUM64] = "ENUM64", 44 44 }; 45 45 46 - struct btf_attach_point { 47 - __u32 obj_id; 48 - __u32 btf_id; 49 - }; 50 - 51 46 static const char *btf_int_enc_str(__u8 encoding) 52 47 { 53 48 switch (encoding) {
-7
tools/bpf/bpftool/map_perf_ring.c
··· 29 29 30 30 static volatile bool stop; 31 31 32 - struct event_ring_info { 33 - int fd; 34 - int key; 35 - unsigned int cpu; 36 - void *mem; 37 - }; 38 - 39 32 struct perf_event_sample { 40 33 struct perf_event_header header; 41 34 __u64 time;