提交 486e24ab 编写于 作者: Q Quentin Monnet 提交者: Zheng Zengkai

bpftool: Remove unused includes to <bpf/bpf_gen_internal.h>

mainline inclusion
from mainline-5.16-rc1
commit c66a248f
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c66a248f1950d41502fb67624147281d9de0e868

-------------------------------------------------

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: d510296d ("bpftool: Use syscall/loader program in "prog load" and "gen skeleton" command.")
Signed-off-by: NQuentin Monnet <quentin@isovalent.com>
Signed-off-by: NAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211007194438.34443-3-quentin@isovalent.com
(cherry picked from commit c66a248f)
Signed-off-by: NWang Yufen <wangyufen@huawei.com>
上级 1c6a75e8
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <bpf/btf.h> #include <bpf/btf.h>
#include <bpf/bpf_gen_internal.h>
#include "json_writer.h" #include "json_writer.h"
#include "main.h" #include "main.h"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <bpf/bpf.h> #include <bpf/bpf.h>
#include <bpf/btf.h> #include <bpf/btf.h>
#include <bpf/libbpf.h> #include <bpf/libbpf.h>
#include <bpf/bpf_gen_internal.h>
#include <bpf/skel_internal.h> #include <bpf/skel_internal.h>
#include "cfg.h" #include "cfg.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册