]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/nolibc: add __nolibc_static_assert()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 20 Dec 2025 13:55:57 +0000 (14:55 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 6 Jan 2026 11:08:08 +0000 (12:08 +0100)
commit37219aa5b12326cd60f4586779c687f3394e80f5
treefe6ac215d896c6d90cb2285310c21ab18b1be84c
parentdd6659efe0529e7177e9270a0fc044a0b17deb8a
tools/nolibc: add __nolibc_static_assert()

Add a wrapper for _Static_assert() to use within nolibc.
While _Static_assert() itself was only standardized in C11,
in GCC and clang dialects it is also available in older standards.

Link: https://lore.kernel.org/lkml/20251203192330.GA12995@1wt.eu/
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20251220-nolibc-uapi-types-v3-13-c662992f75d7@weissschuh.net
tools/include/nolibc/compiler.h