projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed81745
)
libbpf: Fix usage of u32 in userspace code
author
Andrii Nakryiko
<andriin@fb.com>
Mon, 25 Nov 2019 21:29:48 +0000
(13:29 -0800)
committer
Alexei Starovoitov
<ast@kernel.org>
Mon, 25 Nov 2019 21:52:01 +0000
(13:52 -0800)
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
tools/lib/bpf/libbpf.c
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/libbpf.c
b/tools/lib/bpf/libbpf.c
index
e169846
..
b20f82e
100644
(file)
--- 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");