[PATCH v2] kselftest/arm64: Fix build failure with GCC-15
Mark Brown
broonie at kernel.org
Wed Apr 22 10:50:59 PDT 2026
On Wed, Apr 22, 2026 at 06:42:54PM +0100, Leo Yan wrote:
> For GCC-15, NT_ARM_GCS is defined in the libc header, causing gcs-util.h
> to skip its fallback definition of struct user_gcs. This leads to the
> compiler error.
> Fix this by including <asm/ptrace.h> to provide the proper definition.
> +++ b/tools/testing/selftests/arm64/gcs/gcs-util.h
> @@ -7,6 +7,7 @@
> #define GCS_UTIL_H
>
> #include <stdbool.h>
> +#include <asm/ptrace.h>
>
> #ifndef __NR_map_shadow_stack
> #define __NR_map_shadow_stack 453
Reviewed-by: Mark Brown <broonie at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260422/db814029/attachment.sig>
More information about the linux-arm-kernel
mailing list