]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/resolve_btfids: fix build with musl libc
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 28 Mar 2024 10:59:13 +0000 (11:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:29:03 +0000 (15:29 +0200)
commit3a9569441b47e55bd7c1e62aa4b9b90b6f825965
treea3b578daf004f64e51bb06bba133bbd24a1398e1
parent4338e40da808e4c624c1a32bc922e3b9dfe720de
tools/resolve_btfids: fix build with musl libc

commit 62248b22d01e96a4d669cde0d7005bd51ebf9e76 upstream.

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: 9707ac4fe2f5 ("tools/resolve_btfids: Refactor set sorting with types from btf_ids.h")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218647
Cc: stable@vger.kernel.org
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Tested-by: Greg Thelen <gthelen@google.com>
Link: https://lore.kernel.org/r/20240328110103.28734-1-ncopa@alpinelinux.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/include/linux/btf_ids.h