]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Make __vcpu_sys_reg() a pure rvalue operand
authorMarc Zyngier <maz@kernel.org>
Tue, 3 Jun 2025 07:08:24 +0000 (08:08 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Jun 2025 13:18:01 +0000 (14:18 +0100)
commitb5fa1f91e11fdf74ad4e2ac6dae246a57cbd2d95
treee8a61993127705e61c24e78331a4b9710ba8be4b
parentb61fae4ee120f337b8700dff43b2fd639f3bf6a5
KVM: arm64: Make __vcpu_sys_reg() a pure rvalue operand

Now that we don't have any use of __vcpu_sys_reg() as a lvalue,
remove the in-place update, and directly return the sanitised
value.

Reviewed-by: Miguel Luis <miguel.luis@oracle.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20250603070824.1192795-5-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h