From: Will Deacon Date: Tue, 26 Aug 2014 14:13:24 +0000 (+0100) Subject: KVM: vgic: return int instead of bool when checking I/O ranges X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1fa451bcc67fa921a04c5fac8dbcde7844d54512;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git KVM: vgic: return int instead of bool when checking I/O ranges 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 Cc: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Christoffer Dall --- diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 73eba793b17f..d1cfe672b9d7 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1690,7 +1690,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;