Skip to content
Commit b990d37f authored by Marc Zyngier's avatar Marc Zyngier
Browse files

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: default avatarMarc Zyngier <maz@kernel.org>
parent 29eb5a3c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment