Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2016 06:22:41 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299047 - head/sys/dev/pci
Message-ID:  <201605040622.u446MftJ058631@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed May  4 06:22:41 2016
New Revision: 299047
URL: https://svnweb.freebsd.org/changeset/base/299047

Log:
  Fix build without "options PCI_IOV".

Modified:
  head/sys/dev/pci/pci.c

Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c	Wed May  4 06:09:13 2016	(r299046)
+++ head/sys/dev/pci/pci.c	Wed May  4 06:22:41 2016	(r299047)
@@ -5644,9 +5644,10 @@ pci_cfg_restore(device_t dev, struct pci
 	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_de
 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605040622.u446MftJ058631>