diff options
| author | Andrey Ignatov <[email protected]> | 2018-10-03 22:26:43 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-10-04 14:04:16 +0000 |
| commit | e5b0863c2064f2d40de9de4862317f9db4ccffff (patch) | |
| tree | db5900dbeb05babf22b5797b47fe99808fdea01b /tools/lib/bpf/libbpf.h | |
| parent | libbpf: Make include guards consistent (diff) | |
| download | kernel-e5b0863c2064f2d40de9de4862317f9db4ccffff.tar.gz kernel-e5b0863c2064f2d40de9de4862317f9db4ccffff.zip | |
libbpf: Use __u32 instead of u32 in bpf_program__load
Make bpf_program__load consistent with other interfaces: use __u32
instead of u32. That in turn fixes build of samples:
In file included from ./samples/bpf/trace_output_user.c:21:0:
./tools/lib/bpf/libbpf.h:132:9: error: unknown type name ‘u32’
u32 kern_version);
^
Fixes: commit 29cd77f41620d ("libbpf: Support loading individual progs")
Signed-off-by: Andrey Ignatov <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.h')
| -rw-r--r-- | tools/lib/bpf/libbpf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h index 28f83dd6022b..fbfc2aec0f0d 100644 --- a/tools/lib/bpf/libbpf.h +++ b/tools/lib/bpf/libbpf.h @@ -129,7 +129,7 @@ void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex); const char *bpf_program__title(struct bpf_program *prog, bool needs_copy); int bpf_program__load(struct bpf_program *prog, char *license, - u32 kern_version); + __u32 kern_version); int bpf_program__fd(struct bpf_program *prog); int bpf_program__pin_instance(struct bpf_program *prog, const char *path, int instance); |
