Skip to content

Commit

Permalink
KVM: arm: vgic: Drop build compatibility hack for older kernel versions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
  • Loading branch information
Marc Zyngier authored and chazy committed Sep 8, 2016
1 parent 68381b2 commit 55d7cad
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions virt/kvm/arm/vgic/vgic-irqfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,9 @@ static int vgic_irqfd_set_irq(struct kvm_kernel_irq_routing_entry *e,
* @ue: user api routing entry handle
* return 0 on success, -EINVAL on errors.
*/
#ifdef KVM_CAP_X2APIC_API
int kvm_set_routing_entry(struct kvm *kvm,
struct kvm_kernel_irq_routing_entry *e,
const struct kvm_irq_routing_entry *ue)
#else
/* Remove this version and the ifdefery once merged into 4.8 */
int kvm_set_routing_entry(struct kvm_kernel_irq_routing_entry *e,
const struct kvm_irq_routing_entry *ue)
#endif
{
int r = -EINVAL;

Expand Down

0 comments on commit 55d7cad

Please sign in to comment.