diff options
author | 2019-11-25 13:29:48 -0800 | |
---|---|---|
committer | 2019-11-25 13:52:01 -0800 | |
commit | b615e5a1e067dcb327482d1af7463268b89b1629 (patch) | |
tree | d65b338b4596fb800599d5876aed7868c9df18da /tools | |
parent | mm: Implement no-MMU variant of vmalloc_user_node_flags (diff) | |
download | linux-b615e5a1e067dcb327482d1af7463268b89b1629.tar.gz linux-b615e5a1e067dcb327482d1af7463268b89b1629.tar.bz2 linux-b615e5a1e067dcb327482d1af7463268b89b1629.zip |
libbpf: Fix usage of u32 in userspace code
u32 is not defined for libbpf when compiled outside of kernel sources (e.g.,
in Github projection). Use __u32 instead.
Fixes: b8c54ea455dc ("libbpf: Add support to attach to fentry/fexit tracing progs")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191125212948.1163343-1-andriin@fb.com
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/bpf/libbpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index e1698461c6b3..b20f82e58989 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -5128,7 +5128,7 @@ int libbpf_find_vmlinux_btf_id(const char *name, char *dst = raw_tp_btf + sizeof(BTF_PREFIX) - 1; const char *btf_name; int err = -EINVAL; - u32 kind; + __u32 kind; if (IS_ERR(btf)) { pr_warn("vmlinux BTF is not found\n"); |