mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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>
(cherry picked from commit 1fa451bcc6)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
This commit is contained in:
committed by
Christoffer Dall
parent
1453b5c105
commit
02b1b15d12
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user