]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: use intmax definitions from compiler
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 11 Apr 2025 09:00:39 +0000 (11:00 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 22 Apr 2025 08:56:24 +0000 (10:56 +0200)
commite5407c0820ea5fa7117b85ed32b724af73156d63
treea5eca5118fe9aa2666030795fb74ab1f968d59a2
parent4c99fbc6a06f56e266f60f5f24d0cfd8311b2c09
tools/nolibc: use intmax definitions from compiler

The printf format checking in the compiler uses the intmax types from
the compiler, not libc. This can lead to compiler errors.

Instead use the types already provided by the compiler.

Example issue with clang 19 for arm64:

nolibc-test.c:30:2: error: format specifies type 'uintmax_t' (aka 'unsigned long') but the argument has type 'uintmax_t' (aka 'unsigned long long') [-Werror,-Wformat]

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/stdint.h