linux/tools/testing/selftests/arm64/gcs
Leo Yan bb7235e226 kselftest/arm64: Include <asm/ptrace.h> for user_gcs definition
kselftest includes kernel uAPI headers with option:

  -isystem $(top_srcdir)/usr/include

Include <asm/ptrace.h> in libc-gcs.c for the definition of struct
user_gcs from the uAPI headers, and remove the redundant definition in
gcs-util.h. This fixes a compilation error on systems where the
toolchain defines NT_ARM_GCS.

Fixes: a505a52b4e ("kselftest/arm64: Add a GCS test program built with the system libc")
Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2026-05-01 15:17:59 +01:00
..
.gitignore kselftest/arm64: Validate that GCS push and write permissions work 2024-10-16 14:59:50 +01:00
asm-offsets.h kselftest/arm64: Add a GCS stress test 2024-10-04 12:04:45 +01:00
basic-gcs.c kselftest/arm64: Use syscall() macro over nolibc my_syscall() 2026-01-22 11:21:09 +00:00
gcs-locking.c kselftest/arm64: Remove extra blank line 2025-09-08 16:01:21 +01:00
gcs-stress-thread.S kselftest/arm64: Add a GCS stress test 2024-10-04 12:04:45 +01:00
gcs-stress.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
gcs-util.h kselftest/arm64: Include <asm/ptrace.h> for user_gcs definition 2026-05-01 15:17:59 +01:00
gcspushm.S kselftest/arm64: Validate that GCS push and write permissions work 2024-10-16 14:59:50 +01:00
gcsstr.S kselftest/arm64: Validate that GCS push and write permissions work 2024-10-16 14:59:50 +01:00
libc-gcs.c kselftest/arm64: Include <asm/ptrace.h> for user_gcs definition 2026-05-01 15:17:59 +01:00
Makefile kselftest/arm64/gcs/basic-gcs: Respect parent directory CFLAGS 2025-09-17 16:32:02 +01:00