Skip to content

Commit 62248b2

Browse files
ncopaAlexei Starovoitov
authored andcommitted
tools/resolve_btfids: fix build with musl libc
Include the header that defines u32. This fixes build of 6.6.23 and 6.1.83 kernels for Alpine Linux, which uses musl libc. I assume that GNU libc indirecly pulls in linux/types.h. Fixes: 9707ac4 ("tools/resolve_btfids: Refactor set sorting with types from btf_ids.h") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218647 Cc: [email protected] Signed-off-by: Natanael Copa <[email protected]> Tested-by: Greg Thelen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 1a80dbc commit 62248b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/include/linux/btf_ids.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#ifndef _LINUX_BTF_IDS_H
44
#define _LINUX_BTF_IDS_H
55

6+
#include <linux/types.h> /* for u32 */
7+
68
struct btf_id_set {
79
u32 cnt;
810
u32 ids[];

0 commit comments

Comments
 (0)