Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: a505a52b4e29 ("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>

authored by

Leo Yan and committed by
Catalin Marinas
bb7235e2 3ea44150

+1 -6
-6
tools/testing/selftests/arm64/gcs/gcs-util.h
··· 18 18 19 19 #ifndef NT_ARM_GCS 20 20 #define NT_ARM_GCS 0x410 21 - 22 - struct user_gcs { 23 - __u64 features_enabled; 24 - __u64 features_locked; 25 - __u64 gcspr_el0; 26 - }; 27 21 #endif 28 22 29 23 /* Shadow Stack/Guarded Control Stack interface */
+1
tools/testing/selftests/arm64/gcs/libc-gcs.c
··· 16 16 17 17 #include <asm/hwcap.h> 18 18 #include <asm/mman.h> 19 + #include <asm/ptrace.h> 19 20 20 21 #include <linux/compiler.h> 21 22