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

Catalin Marinas catalin.marinas at arm.com
Wed Jul 23 02:44:31 PDT 2025


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 at arm.com>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list