KVM: arm64: Stop sparse from moaning at __hyp_this_cpu_ptr
authorMarc Zyngier <maz@kernel.org>
Sun, 7 Jun 2020 09:55:28 +0000 (10:55 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 9 Jun 2020 09:59:52 +0000 (10:59 +0100)
commitb990d37fdf6781fd0907ffd14d0dff16b5d58ffa
treea5ddf6f6f821829ba47b6634ff9e4493d46c1ae2
parent29eb5a3c57f7e06d803bb44a0ce2f9ed79f39cd9
KVM: arm64: Stop sparse from moaning at __hyp_this_cpu_ptr

Sparse complains that __hyp_this_cpu_ptr() returns something
that is flagged noderef and not in the correct address space
(both being the result of the __percpu annotation).

Pretend that __hyp_this_cpu_ptr() knows what it is doing by
forcefully casting the pointer with __kernel __force.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_asm.h