Re: [PATCH] tools/resolve_btfids: fix build with musl libc

From: Alexei Starovoitov
Date: Thu Mar 28 2024 - 22:08:16 EST


On Thu, Mar 28, 2024 at 9:18 AM Greg Thelen <gthelen@xxxxxxxxxx> wrote:
>
> Natanael Copa <ncopa@xxxxxxxxxxxxxxx> wrote:
>
> > Include the header that defines u32.
>
> > Fixes: 9707ac4fe2f5 ("tools/resolve_btfids: Refactor set sorting with
> > types from btf_ids.h")
> > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218647
>
> Tested-by: Greg Thelen <gthelen@xxxxxxxxxx>
>
> > Cc: stable@xxxxxxxxxxxxxxx
> > Signed-off-by: Natanael Copa <ncopa@xxxxxxxxxxxxxxx>
> > ---
> > 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.

Ok. Applied to bpf tree and added the above explanation to commit log.