Re: [PATCH v1] tools build: Fix a number of Wconversion warnings

From: Namhyung Kim
Date: Thu Feb 13 2025 - 12:23:20 EST


On Mon, 06 Jan 2025 13:54:42 -0800, Ian Rogers wrote:
> There's some expressed interest in having the compiler flag
> -Wconversion detect at build time certain kinds of potential problems:
> https://lore.kernel.org/lkml/20250103182532.GB781381@xxxxxxxxxxxxxxx/
>
> As feature detection passes -Wconversion from CFLAGS when set, the
> feature detection compile tests need to not fail because of
> -Wconversion as the failure will be interpretted as a missing
> feature. Switch various types to avoid the -Wconversion issue, the
> exact meaning of the code is unimportant as it is typically looking
> for header file definitions.
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung