Re: [PATCH v3] arm64/signal: Silence sparse warning storing GCSPR_EL0

From: Catalin Marinas
Date: Fri Dec 20 2024 - 12:47:06 EST


On Sat, 14 Dec 2024 02:12:06 +0000, Mark Brown wrote:
> We are seeing a sparse warning in gcs_restore_signal():
>
> arch/arm64/kernel/signal.c:1054:9: sparse: sparse: cast removes address space '__user' of expression
>
> when storing the final GCSPR_EL0 value back into the register, caused by
> the fact that write_sysreg_s() casts the value it writes to a u64 which
> sparse sees as discarding the __userness of the pointer.
>
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64/signal: Silence sparse warning storing GCSPR_EL0
https://git.kernel.org/arm64/c/926e86205897

--
Catalin