Commit e0d4621e authored by Will Deacon's avatar Will Deacon Committed by Jiri Slaby

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

commit 1fa451bc 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: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: default avatarShannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 3594f00b
...@@ -1468,7 +1468,7 @@ int kvm_vgic_create(struct kvm *kvm) ...@@ -1468,7 +1468,7 @@ int kvm_vgic_create(struct kvm *kvm)
return ret; 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 dist = kvm->arch.vgic.vgic_dist_base;
phys_addr_t cpu = kvm->arch.vgic.vgic_cpu_base; phys_addr_t cpu = kvm->arch.vgic.vgic_cpu_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment