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

- From: Catalin Marinas \<catalin.marinas@arm.com\>
- Date: 2025-07-23 09:44:37 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2025/07/3145228
- Thread: https://ratatoskr.run/linux-trace-kernel/2025/07/3140791/t.md

```text
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 <redacted>

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