]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: ARM/arm64: fix broken __percpu annotation
authorWill Deacon <will.deacon@arm.com>
Tue, 26 Aug 2014 14:13:21 +0000 (15:13 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:08 +0000 (11:15 +0200)
commit60731b1c244efd3192f1fb36c843a0a3add66599
tree218b2c60d080a60e62cb5dc02d214158115632c1
parent86644d65edc817d4bc056209e376b161e7ed8115
KVM: ARM/arm64: fix broken __percpu annotation

commit 4000be423cb01a8d09de878bb8184511c49d4238 upstream.

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>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/kvm/arm.c
arch/arm64/include/asm/kvm_host.h