]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/nolibc: test compatibility of nolibc and kernel time types
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 20 Dec 2025 13:55:54 +0000 (14:55 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 6 Jan 2026 11:08:04 +0000 (12:08 +0100)
commitca7206b6ad029d2c35e64f1ea81dba385496e630
treecbbb46b190dcc44cb79395efa20a182d7d75f976
parentbdcfc417f26ffd1a7e214d1cce78500dc4dbc2d5
selftests/nolibc: test compatibility of nolibc and kernel time types

Keeping 'struct timespec' and 'struct __kernel_timespec' compatible
allows the source code to stay simple.

Validate that the types stay compatible.

The test is specific to nolibc and does not compile on other libcs, so
skip it there.

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-10-c662992f75d7@weissschuh.net
tools/testing/selftests/nolibc/nolibc-test.c