Re: [PATCH v4 3/8] arm64: uaccess: Move existing GCS accessors definitions to gcs.h

From: Catalin Marinas
Date: Wed Jul 23 2025 - 05:44:51 EST


On Fri, Jul 18, 2025 at 11:37:35PM -0500, Jeremy Linton wrote:
> We are going to add some additional GCS access helpers to gcs.h in
> order to avoid some forward reference problems with uaccess.
>
> In preparation for that, lets move the existing gcssttr() and
> put_user_gcs() routines into gcs.h where it makes sense to keep all
> the accessors together. Further, the code which uses them already
> includes gcs.h and there is an existing CONFIG_ARM64_GCS check we can
> reuse.
>
> Signed-off-by: Jeremy Linton <jeremy.linton@xxxxxxx>

Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>