Re: [PATCH] tools/resolve_btfids: Include linux/types.h

From: Alexei Starovoitov
Date: Fri Mar 15 2024 - 11:41:21 EST


On Fri, Mar 15, 2024 at 2:15 AM Dmitrii Bundin
<dmitrii.bundin.a@xxxxxxxxx> wrote:
>
> When compiling the kernel there's no type definition for u32 within the
> translation unit causing compilation errors of the following format:
>
> btf_ids.h:7:2: error: unknown type name ‘u32’

What compiler? What setup?
Steps to repro?

No one reported this, though lots of people
are building resolve_btfids that uses this header
as part of the kernel build.

pw-bot: cr