diff options
Diffstat (limited to 'queue-6.6/tools-nolibc-use-intmax-definitions-from-compiler.patch')
-rw-r--r-- | queue-6.6/tools-nolibc-use-intmax-definitions-from-compiler.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/queue-6.6/tools-nolibc-use-intmax-definitions-from-compiler.patch b/queue-6.6/tools-nolibc-use-intmax-definitions-from-compiler.patch deleted file mode 100644 index 07691e71efb..00000000000 --- a/queue-6.6/tools-nolibc-use-intmax-definitions-from-compiler.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 992231694721078a70b7adc16f60b4d115f0e431 Mon Sep 17 00:00:00 2001 -From: Sasha Levin <sashal@kernel.org> -Date: Fri, 11 Apr 2025 11:00:39 +0200 -Subject: tools/nolibc: use intmax definitions from compiler -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -From: Thomas Weißschuh <thomas.weissschuh@linutronix.de> - -[ Upstream commit e5407c0820ea5fa7117b85ed32b724af73156d63 ] - -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> -Signed-off-by: Sasha Levin <sashal@kernel.org> ---- - tools/include/nolibc/stdint.h | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tools/include/nolibc/stdint.h b/tools/include/nolibc/stdint.h -index 6665e272e2132..87a2b09e2dda5 100644 ---- a/tools/include/nolibc/stdint.h -+++ b/tools/include/nolibc/stdint.h -@@ -39,8 +39,8 @@ typedef size_t uint_fast32_t; - typedef int64_t int_fast64_t; - typedef uint64_t uint_fast64_t; - --typedef int64_t intmax_t; --typedef uint64_t uintmax_t; -+typedef __INTMAX_TYPE__ intmax_t; -+typedef __UINTMAX_TYPE__ uintmax_t; - - /* limits of integral types */ - --- -2.39.5 - |