diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-05-24 14:58:56 -0400 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-05-24 17:05:57 -0400 |
commit | 1d7a08b3bdaec1e25ba7979ff598272b7e34318f (patch) | |
tree | bff336ea4ee5ec871429eccae96bd9d1fdb4764b | |
parent | c87f60a77db2c01770ef9c6ea792a1d39c3594ff (diff) |
libbpf: ensure libbpf.h is included along libbpf_internal.h
libbpf_internal.h expects a bunch of stuff defined in libbpf.h to be
defined. This patch makes sure that libbpf.h is always included.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
-rw-r--r-- | tools/lib/bpf/libbpf_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf_internal.h b/tools/lib/bpf/libbpf_internal.h index f3025b4d90e1..850f7bdec5cb 100644 --- a/tools/lib/bpf/libbpf_internal.h +++ b/tools/lib/bpf/libbpf_internal.h | |||
@@ -9,6 +9,8 @@ | |||
9 | #ifndef __LIBBPF_LIBBPF_INTERNAL_H | 9 | #ifndef __LIBBPF_LIBBPF_INTERNAL_H |
10 | #define __LIBBPF_LIBBPF_INTERNAL_H | 10 | #define __LIBBPF_LIBBPF_INTERNAL_H |
11 | 11 | ||
12 | #include "libbpf.h" | ||
13 | |||
12 | #define BTF_INFO_ENC(kind, kind_flag, vlen) \ | 14 | #define BTF_INFO_ENC(kind, kind_flag, vlen) \ |
13 | ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN)) | 15 | ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN)) |
14 | #define BTF_TYPE_ENC(name, info, size_or_type) (name), (info), (size_or_type) | 16 | #define BTF_TYPE_ENC(name, info, size_or_type) (name), (info), (size_or_type) |