]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Use __u32 instead of u32 in bpf_program__load
authorAndrey Ignatov <rdna@fb.com>
Wed, 3 Oct 2018 22:26:43 +0000 (15:26 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 4 Oct 2018 14:04:16 +0000 (16:04 +0200)
commitf5e18302e8db51ce12dd6ff1145e50a1aaeda4c9
treedb5900dbeb05babf22b5797b47fe99808fdea01b
parent32877ef0859a4a2952720508bc68933b8bd70969
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 8febfa736b81a ("libbpf: Support loading individual progs")
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h