Re: [PATCH 1/1 fyi] tools headers: Synchronize linux/bits.h with the kernel sources

From: Vincent Mailhol
Date: Fri Jun 13 2025 - 08:26:47 EST


On 13/06/2025 at 00:38, Arnaldo Carvalho de Melo wrote:
> tldr; Just FYI, I'm carrying this on the perf tools tree.
>
> Full explanation:
>
> There used to be no copies, with tools/ code using kernel headers
> directly. From time to time tools/perf/ broke due to legitimate kernel
> hacking. At some point Linus complained about such direct usage. Then we
> adopted the current model.
>
> See further details at:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/include/uapi/README
>
> To pick up the changes in this cset:
>
> 5b572e8a9f3dcd6e ("bits: introduce fixed-type BIT_U*()")
> 19408200c094858d ("bits: introduce fixed-type GENMASK_U*()")
> 31299a5e02112411 ("bits: add comments and newlines to #if, #else and #endif directives")
>
> This addresses these perf build warnings:
>
> Warning: Kernel ABI header differences:
> diff -u tools/include/linux/bits.h include/linux/bits.h
>
> Please see tools/include/uapi/README for further details.
>
> Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
> Cc: Ian Rogers <irogers@xxxxxxxxxx>
> Cc: James Clark <james.clark@xxxxxxxxxx>
> Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
> Cc: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>
> Cc: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
> Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
> Cc: Vincent Mailhol <mailhol.vincent@xxxxxxxxxx>
> Cc: Yury Norov <yury.norov@xxxxxxxxx>
> Link: https://lore.kernel.org/r/
> Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

For what it is worth:

Acked-by: Vincent Mailhol <mailhol.vincent@xxxxxxxxxx>


Yours sincerely,
Vincent Mailhol