mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
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 <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>