Skip to content

Commit 1fa451b

Browse files
wildea01chazy
authored andcommitted
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 <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>
1 parent bd218bc commit 1fa451b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎virt/kvm/arm/vgic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ int kvm_vgic_create(struct kvm *kvm)
16901690
return ret;
16911691
}
16921692

1693-
static bool vgic_ioaddr_overlap(struct kvm *kvm)
1693+
static int vgic_ioaddr_overlap(struct kvm *kvm)
16941694
{
16951695
phys_addr_t dist = kvm->arch.vgic.vgic_dist_base;
16961696
phys_addr_t cpu = kvm->arch.vgic.vgic_cpu_base;

0 commit comments

Comments
 (0)