]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools build: Fix a number of Wconversion warnings
authorIan Rogers <irogers@google.com>
Mon, 6 Jan 2025 21:54:42 +0000 (13:54 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 13 Feb 2025 04:23:05 +0000 (20:23 -0800)
commit7c1e94f5dc9ea0f38b8fac14ae8193233e4f6afe
tree9bbbaa3ecc462aee294e2a607f48d8e780d6387b
parentdc6d2bc2d893a878e7b58578ff01b4738708deb4
tools build: Fix a number of Wconversion warnings

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@e132581.arm.com/

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.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250106215443.198633-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/build/feature/test-backtrace.c
tools/build/feature/test-bpf.c
tools/build/feature/test-glibc.c
tools/build/feature/test-libdebuginfod.c
tools/build/feature/test-libdw.c
tools/build/feature/test-libelf-gelf_getnote.c
tools/build/feature/test-libelf.c
tools/build/feature/test-lzma.c