bpftool: Remove unused includes to <bpf/bpf_gen_internal.h>
authorQuentin Monnet <quentin@isovalent.com>
Thu, 7 Oct 2021 19:44:28 +0000 (20:44 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Oct 2021 18:47:40 +0000 (11:47 -0700)
It seems that the header file was never necessary to compile bpftool,
and it is not part of the headers exported from libbpf. Let's remove the
includes from prog.c and gen.c.

Fixes: d510296d331a ("bpftool: Use syscall/loader program in "prog load" and "gen skeleton" command.")
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211007194438.34443-3-quentin@isovalent.com
tools/bpf/bpftool/gen.c
tools/bpf/bpftool/prog.c

index cc835859465b6246ccdd3c3e9dc84cc74f654a9b..b2ffc18eafc1851dc6d6c1fdfd49c1d717ffad94 100644 (file)
@@ -18,7 +18,6 @@
 #include <sys/stat.h>
 #include <sys/mman.h>
 #include <bpf/btf.h>
-#include <bpf/bpf_gen_internal.h>
 
 #include "json_writer.h"
 #include "main.h"
index a24ea7e26aa43fb3cb9003b1d8fc5ded8435f0b3..277d51c4c5d98667ee7daa608fb32268aace2f62 100644 (file)
@@ -25,7 +25,6 @@
 #include <bpf/bpf.h>
 #include <bpf/btf.h>
 #include <bpf/libbpf.h>
-#include <bpf/bpf_gen_internal.h>
 #include <bpf/skel_internal.h>
 
 #include "cfg.h"