]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - arch/arm/kvm/arm.c
KVM: ARM/arm64: fix broken __percpu annotation
authorWill Deacon <will.deacon@arm.com>
Tue, 26 Aug 2014 14:13:21 +0000 (15:13 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 27 Aug 2014 20:49:45 +0000 (22:49 +0200)
commit4000be423cb01a8d09de878bb8184511c49d4238
treed01c4708d1f012b86aa7d15d0f66bede67580988
parent6951e48bff0b55d2a8e825a953fc1f8e3a34bf1c
KVM: ARM/arm64: fix broken __percpu annotation

Running sparse results in a bunch of noisy address space mismatches
thanks to the broken __percpu annotation on kvm_get_running_vcpus.

This function returns a pcpu pointer to a pointer, not a pointer to a
pcpu pointer. This patch fixes the annotation, which kills the warnings
from sparse.

Cc: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c
arch/arm64/include/asm/kvm_host.h