summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/poll.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-12-20 14:55:45 +0100
committerThomas Weißschuh <linux@weissschuh.net>2026-01-04 10:28:57 +0100
commitf675e35dd28f1ac326b1d6520fee3605019b381b (patch)
treea1d5cde9cbd602d9ed5cf311c588a6466fee81ff /tools/include/nolibc/poll.h
parentcc6809f6728456c03db6750fcc94ed8b581a2cf8 (diff)
downloadlinux-next-f675e35dd28f1ac326b1d6520fee3605019b381b.tar.gz
linux-next-f675e35dd28f1ac326b1d6520fee3605019b381b.zip
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
Diffstat (limited to 'tools/include/nolibc/poll.h')
-rw-r--r--tools/include/nolibc/poll.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/nolibc/poll.h b/tools/include/nolibc/poll.h
index 0d053f93ea99..df952bcf0905 100644
--- a/tools/include/nolibc/poll.h
+++ b/tools/include/nolibc/poll.h
@@ -24,7 +24,7 @@ static __attribute__((unused))
int sys_poll(struct pollfd *fds, int nfds, int timeout)
{
#if defined(__NR_ppoll)
- struct timespec t;
+ struct __kernel_old_timespec t;
if (timeout >= 0) {
t.tv_sec = timeout / 1000;