From 12b204a61b5334397d9c9be02dc1770db2aec043 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Wed, 4 May 2016 06:22:41 +0000 Subject: [PATCH] Fix build without "options PCI_IOV". --- sys/dev/pci/pci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index ae01f24b634..d668bd7d320 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -5644,9 +5644,10 @@ pci_cfg_restore(device_t dev, struct pci_devinfo *dinfo) if (dinfo->cfg.msix.msix_location != 0) pci_resume_msix(dev); +#ifdef PCI_IOV if (dinfo->cfg.iov != NULL) pci_iov_cfg_restore(dev, dinfo); - +#endif } static void @@ -5759,8 +5760,10 @@ pci_cfg_save(device_t dev, struct pci_devinfo *dinfo, int setstate) if (dinfo->cfg.pcix.pcix_location != 0) pci_cfg_save_pcix(dev, dinfo); +#ifdef PCI_IOV if (dinfo->cfg.iov != NULL) pci_iov_cfg_save(dev, dinfo); +#endif /* * don't set the state for display devices, base peripherals and