]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
pci: Fix the non-PCI_IOV build.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 19 Mar 2009 13:48:52 +0000 (13:48 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 19 Mar 2009 13:48:52 +0000 (13:48 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
drivers/xen/core/pci.c

index 595739f140cbe4583c173e5643cf4d0d754ca939..cc4cb317aaa17c37a31a9858fd700c9bba58ffcb 100644 (file)
@@ -18,6 +18,7 @@ static int pci_bus_probe_wrapper(struct device *dev)
        struct physdev_manage_pci manage_pci;
        struct physdev_manage_pci_ext manage_pci_ext;
 
+#ifdef CONFIG_PCI_IOV
        if (pci_dev->is_virtfn) {
                memset(&manage_pci_ext, 0, sizeof(manage_pci_ext));
                manage_pci_ext.bus = pci_dev->bus->number;
@@ -27,7 +28,9 @@ static int pci_bus_probe_wrapper(struct device *dev)
                manage_pci_ext.physfn.devfn = pci_dev->physfn->devfn;
                r = HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_add_ext,
                                          &manage_pci_ext);
-       } else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) {
+       } else
+#endif
+       if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) {
                memset(&manage_pci_ext, 0, sizeof(manage_pci_ext));
                manage_pci_ext.bus = pci_dev->bus->number;
                manage_pci_ext.devfn = pci_dev->devfn;