Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: KVM: fix non-VGIC compilation

Add a stub for kvm_vgic_addr when compiling without
CONFIG_KVM_ARM_VGIC. The usefulness of this configurarion is extremely
doubtful, but let's fix it anyway (until we decide that we'll always
support a VGIC).

Reported-by: Michele Paolino <m.paolino@virtualopensystems.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Marc Zyngier and committed by
Paolo Bonzini
6cbde825 1b385cbd

+5
+5
include/kvm/arm_vgic.h
··· 171 171 return 0; 172 172 } 173 173 174 + static inline int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write) 175 + { 176 + return -ENXIO; 177 + } 178 + 174 179 static inline int kvm_vgic_init(struct kvm *kvm) 175 180 { 176 181 return 0;