]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc: move the call to __sysret() into syscall()
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 5 Apr 2026 09:06:24 +0000 (11:06 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 7 Apr 2026 07:27:02 +0000 (09:27 +0200)
commit022bbb5a41fd6463887dfb7de22f5be8262239a7
treec9bf487dae0abe243dc862a255029877f88aad4d
parent3f5059f01de1aca30e7f793da0a0b5bf2740cb7a
tools/nolibc: move the call to __sysret() into syscall()

__sysret() transforms the return value from the kernel into the libc
return value convention. There is no reason for it to be called in the
middle of the internals of the syscall() implementation macros.

Move the call up, directly into syscall(), to make the code simpler.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260405-nolibc-syscall-v1-2-e5b12bc63211@weissschuh.net
tools/include/nolibc/sys/syscall.h