]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kselftest/arm64: Use syscall() macro over nolibc my_syscall()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 17 Jan 2026 12:10:51 +0000 (13:10 +0100)
committerWill Deacon <will@kernel.org>
Thu, 22 Jan 2026 11:21:09 +0000 (11:21 +0000)
commit2a369c4942489aeab799a7509b7cc721eecafa8a
treedc924c29ab9d273847c90e5d333623286284546b
parentfb36d71308a770268c771d6697f22615e5ddbd6e
kselftest/arm64: Use syscall() macro over nolibc my_syscall()

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.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/tpidr2.c
tools/testing/selftests/arm64/gcs/basic-gcs.c