Define the prog_type_name and attach_type_name only once by moving them out of main.h. This slightly reduces the binary size of bpftool: Before: text data bss dec hex filename 401032 11936 1573160 1986128 1e4e50 bpftool After: text data bss dec hex filename 398256 10880 1573160 1982296 1e3f58 bpftool Tobias Klauser (2): tools, bpftool: Define prog_type_name array only once tools, bpftool: Define attach_type_name array only once tools/bpf/bpftool/common.c | 36 +++++++++++++++++++ tools/bpf/bpftool/feature.c | 4 +-- tools/bpf/bpftool/link.c | 4 +-- tools/bpf/bpftool/main.h | 69 ++----------------------------------- tools/bpf/bpftool/map.c | 4 +-- tools/bpf/bpftool/prog.c | 34 ++++++++++++++++++ 6 files changed, 79 insertions(+), 72 deletions(-) -- 2.27.0