KVM: vgic: return int instead of bool when checking I/O ranges

commit 1fa451bcc6 upstream.

vgic_ioaddr_overlap claims to return a bool, but in reality it returns
an int. Shut sparse up by fixing the type signature.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Will Deacon 2014-08-26 15:13:24 +01:00 committed by Greg Kroah-Hartman
parent f967dfcedb
commit 29bab152e5
1 changed files with 1 additions and 1 deletions

View File

@ -1654,7 +1654,7 @@ out:
return ret;
}
static bool vgic_ioaddr_overlap(struct kvm *kvm)
static int vgic_ioaddr_overlap(struct kvm *kvm)
{
phys_addr_t dist = kvm->arch.vgic.vgic_dist_base;
phys_addr_t cpu = kvm->arch.vgic.vgic_cpu_base;