tools/resolve_btfids: fix build with musl libc
Subsystems (2)
PATCH 1/1 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.
tools/include/linux/btf_ids.h | 2 ++ 1 file changed, 2 insertions(+)
tools/include/linux/btf_ids.h +2 -0
@@ -3,6 +3,8 @@ #ifndef _LINUX_BTF_IDS_H #define _LINUX_BTF_IDS_H +#include <linux/types.h> /* for u32 */ + struct btf_id_set { u32 cnt; u32 ids[];
Signature · 1 line
2.44.0
Quoted 4 lines · Natanael Copa
Include the header that defines u32.
Fixes 9707ac4fe2f5 ("tools/resolve_btfids: Refactor set sorting with types from btf_ids.h")
Quoted 22 lines
Signed-off-by Natanael Copa <[email protected]>---
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 inlinux/types.h.tools/include/linux/btf_ids.h | 2 ++ 1 file changed, 2 insertions(+)tools/include/linux/btf_ids.h +2
-0@@ -3,6 +3,8 @@ #ifndef _LINUX_BTF_IDS_H #define _LINUX_BTF_IDS_H +#include <linux/types.h> /* for u32 */ + struct btf_id_set { u32 cnt; u32 ids[];
Quoted 16 lines · Greg Thelen
Quoted 5 lines · Natanael Copa
Include the header that defines u32.
Fixes 9707ac4fe2f5 ("tools/resolve_btfids: Refactor set sorting withtypes from
btf_ids.h")Tested-by Greg Thelen <[email protected]>Quoted 5 lines
Signed-off-by Natanael Copa <[email protected]>---
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 inlinux/types.h.
Ok. Applied to bpf tree and added the above explanation to commit log.
This patch was applied to bpf/bpf.git (master) by Alexei Starovoitov <[email protected]>:
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <[email protected]>:
Quoted 8 lines · On Thu, 28 Mar 2024 11:59:13 +0100 you wrote:
Include the header that defines u32.
Fixes 9707ac4fe2f5 ("tools/resolve_btfids: Refactor set sorting with types from btf_ids.h")Signed-off-by Natanael Copa <[email protected]>[...]
Here is the summary with links:
- tools/resolve_btfids: fix build with musl libc
https://git.kernel.org/bpf/bpf/c/62248b22d01e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html