]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc/poll: use kernel types for system call invocations
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 20 Dec 2025 13:55:45 +0000 (14:55 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Sun, 4 Jan 2026 09:28:57 +0000 (10:28 +0100)
commitf675e35dd28f1ac326b1d6520fee3605019b381b
treea1d5cde9cbd602d9ed5cf311c588a6466fee81ff
parentcc6809f6728456c03db6750fcc94ed8b581a2cf8
tools/nolibc/poll: use kernel types for system call invocations

The system calls expect 'struct __kernel_old_timespec'.
While currently 'struct __kernel_old_timespec' and 'struct timespec' are
compatible, this is confusing. Especially as future patches will change
the definition of 'struct timespec'.

Use the correct kernel type instead.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/lkml/fbca1d3e-12e4-4c4e-8091-87464035fe39@app.fastmail.com/
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-1-c662992f75d7@weissschuh.net
tools/include/nolibc/poll.h
tools/include/nolibc/sys/select.h