Re: [PATCH] kselftest/arm64: Use syscall() macro over nolibc my_syscall()
From: Mark Brown
Date: Sun Jan 18 2026 - 10:16:50 EST
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@xxxxxxxxxx>
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.
Attachment:
signature.asc
Description: PGP signature