aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/arm
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2016-08-30 13:54:19 -0400
committerChristoffer Dall <christoffer.dall@linaro.org>2016-09-08 06:53:00 -0400
commit55d7cad6a98bbd6f8a5a98b9943b6819d7dc1f22 (patch)
tree76ec14880304840f155edb0dc27f57bea69cdd0e /virt/kvm/arm
parent68381b2b00f728a6c910e777bd62986c951323a3 (diff)
KVM: arm: vgic: Drop build compatibility hack for older kernel versions
As kvm_set_routing_entry() was changing prototype between 4.7 and 4.8, an ugly hack was put in place in order to survive both building in -next and the merge window. Now that everything has been merged, let's dump the compatibility hack for good. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'virt/kvm/arm')
-rw-r--r--virt/kvm/arm/vgic/vgic-irqfd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/virt/kvm/arm/vgic/vgic-irqfd.c b/virt/kvm/arm/vgic/vgic-irqfd.c
index b31a51a14efb..d918dcf26a5a 100644
--- a/virt/kvm/arm/vgic/vgic-irqfd.c
+++ b/virt/kvm/arm/vgic/vgic-irqfd.c
@@ -46,15 +46,9 @@ static int vgic_irqfd_set_irq(struct kvm_kernel_irq_routing_entry *e,
46 * @ue: user api routing entry handle 46 * @ue: user api routing entry handle
47 * return 0 on success, -EINVAL on errors. 47 * return 0 on success, -EINVAL on errors.
48 */ 48 */
49#ifdef KVM_CAP_X2APIC_API
50int kvm_set_routing_entry(struct kvm *kvm, 49int kvm_set_routing_entry(struct kvm *kvm,
51 struct kvm_kernel_irq_routing_entry *e, 50 struct kvm_kernel_irq_routing_entry *e,
52 const struct kvm_irq_routing_entry *ue) 51 const struct kvm_irq_routing_entry *ue)
53#else
54/* Remove this version and the ifdefery once merged into 4.8 */
55int kvm_set_routing_entry(struct kvm_kernel_irq_routing_entry *e,
56 const struct kvm_irq_routing_entry *ue)
57#endif
58{ 52{
59 int r = -EINVAL; 53 int r = -EINVAL;
60 54