diff options
| author | Dmitrii Bundin <[email protected]> | 2024-04-20 04:24:57 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-04-29 23:28:07 +0000 |
| commit | cfd3bfe9507b4aa39f7e86772e60b50b799e490e (patch) | |
| tree | 7d7acbf0cc7591c094ce3445254b943236bdae04 /tools/lib/bpf/libbpf.c | |
| parent | Merge branch 'free-strdup-memory-in-selftests' (diff) | |
| download | kernel-cfd3bfe9507b4aa39f7e86772e60b50b799e490e.tar.gz kernel-cfd3bfe9507b4aa39f7e86772e60b50b799e490e.zip | |
bpf: Include linux/types.h for u32
Inclusion of the header linux/btf_ids.h relies on indirect inclusion of
the header linux/types.h. Including it directly on the top level helps
to avoid potential problems if linux/types.h hasn't been included
before.
The main motivation to introduce this it is to avoid similar problems that
have shown up in the bpftool where GNU libc indirectly pulls
linux/types.h causing compile error of the form:
error: unknown type name 'u32'
u32 cnt;
^~~
The bpftool compile error was fixed in
62248b22d01e ("tools/resolve_btfids: fix build with musl libc").
Signed-off-by: Dmitrii Bundin <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions
