Skip to content

Commit

Permalink
KVM: vgic: return int instead of bool when checking I/O ranges
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Marc Zyngier <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
  • Loading branch information
wildea01 authored and chazy committed Aug 27, 2014
1 parent bd218bc commit 1fa451b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/arm/vgic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ int kvm_vgic_create(struct kvm *kvm)
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;
Expand Down

0 comments on commit 1fa451b

Please sign in to comment.