On Fri, Sep 12, 2025 at 08:30:08AM +0200, Thomas Weißschuh wrote:
> On 2025-09-12 00:48:47+0530, Naresh Kamboju wrote:

> index c99a6b39ac14..816b497634d6 100644
> --- a/tools/testing/selftests/arm64/gcs/gcs-util.h
> +++ b/tools/testing/selftests/arm64/gcs/gcs-util.h
> @@ -26,6 +26,10 @@ struct user_gcs {
>  };
>  #endif
> 
> +#ifndef HWCAP_GCS
> +#define HWCAP_GCS (1UL << 32)
> +#endif
> +

We're doing that for glibc using tests because there's some unfortunate
interaction between including the relevant kernel header and glibc's
headers (I forget the details) which means that including the kernel
header directly conflicts with something glibc is doing.  For nolibc I
would expect us to using the kernel's hwcap definitions?

Attachment: signature.asc
Description: PGP signature

Reply via email to