]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: uaccess: Move existing GCS accessors definitions to gcs.h
authorJeremy Linton <jeremy.linton@arm.com>
Mon, 25 Aug 2025 03:34:16 +0000 (22:34 -0500)
committerWill Deacon <will@kernel.org>
Tue, 16 Sep 2025 19:31:44 +0000 (20:31 +0100)
commitea920b50ac9ff13ef0282428bd80395ea134a26c
tree5ac738f8bc877e9db6cd18d44187685f939a3858
parent47687aa4d9c91a9d9b1dbae40c242cd291030bd9
arm64: uaccess: Move existing GCS accessors definitions to gcs.h

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. The GCSSTTR instruction description comment is corrected during
the move.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/gcs.h
arch/arm64/include/asm/uaccess.h