KVM: Move #endif KVM_CAP_IRQ_ROUTING to correct place
authorAvi Kivity <avi@redhat.com>
Mon, 10 Aug 2009 14:00:52 +0000 (17:00 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:42 +0000 (10:46 +0300)
The symbol only controls irq routing, not MSI-X.

Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c

index 4470251ddc5311243cf29922293189d14d534684..1df4c0422f68ff9ee5657db56ab1f4632da954d1 100644 (file)
@@ -2236,6 +2236,7 @@ static long kvm_vm_ioctl(struct file *filp,
                vfree(entries);
                break;
        }
+#endif /* KVM_CAP_IRQ_ROUTING */
 #ifdef __KVM_HAVE_MSIX
        case KVM_ASSIGN_SET_MSIX_NR: {
                struct kvm_assigned_msix_nr entry_nr;
@@ -2258,7 +2259,6 @@ static long kvm_vm_ioctl(struct file *filp,
                break;
        }
 #endif
-#endif /* KVM_CAP_IRQ_ROUTING */
        case KVM_IRQFD: {
                struct kvm_irqfd data;