]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools/nolibc/poll: drop __NR_poll fallback
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 20 Dec 2025 13:55:46 +0000 (14:55 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Sun, 4 Jan 2026 09:28:58 +0000 (10:28 +0100)
This fallback is never used, remove it.

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-2-c662992f75d7@weissschuh.net
tools/include/nolibc/poll.h

index df952bcf09055fb2b9d5d909538b560763797561..5b4fa339fbb5a22a0baa322af8ae458c8c686e0d 100644 (file)
@@ -31,7 +31,7 @@ int sys_poll(struct pollfd *fds, int nfds, int timeout)
                t.tv_nsec = (timeout % 1000) * 1000000;
        }
        return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0);
-#elif defined(__NR_ppoll_time64)
+#else
        struct __kernel_timespec t;
 
        if (timeout >= 0) {
@@ -39,8 +39,6 @@ int sys_poll(struct pollfd *fds, int nfds, int timeout)
                t.tv_nsec = (timeout % 1000) * 1000000;
        }
        return my_syscall5(__NR_ppoll_time64, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0);
-#else
-       return my_syscall3(__NR_poll, fds, nfds, timeout);
 #endif
 }