History

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).

Marc Zyngier committed 12 years ago

Commit 6cbde821 parent 1b385cb1 file · +5 −0Browse files

Unified · Split

include/kvm/arm_vgic.h+5−0
@@ -171,6 +171,11 @@ static inline int kvm_vgic_set_addr(struct kvm *kvm, unsigned long type, u64 add · 170 unmodified lines
171171 return 0;
172172 }
173173
174+static inline int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write)
175+{
176+ return -ENXIO;
177+}
178+
174179 static inline int kvm_vgic_init(struct kvm *kvm)
175180 {
176181 return 0;