[PATCH] kselftest/arm64: Use syscall() macro over nolibc my_syscall()

Mark Brown broonie at kernel.org
Sun Jan 18 07:16:36 PST 2026


On Sat, Jan 17, 2026 at 01:10:51PM +0100, Thomas Weißschuh wrote:
> The my_syscall*() macros are internal implementation details of nolibc.
> Nolibc also provides the regular syscall(2), which is also a macro
> and directly expands to the correct my_syscall().
> 
> Use syscall() instead.
> 
> As a side-effect this fixes some return value checks, as my_syscall()
> returns the raw value as set by the kernel and does not set errno.

Acked-by: Mark Brown <broonie at kernel.org>

Looking at the history the nolibc syscall() was added after we started
doing this in the arm64 selftests, it was 2023 while the tpidr2 test
is from 2022.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260118/21e6d30d/attachment.sig>


More information about the linux-arm-kernel mailing list