Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2016 20:31:12 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303559 - head/sys/dev/pci
Message-ID:  <201607302031.u6UKVCiE093757@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat Jul 30 20:31:12 2016
New Revision: 303559
URL: https://svnweb.freebsd.org/changeset/base/303559

Log:
  Try to declare _hw_pci for all sysctl cases needed after r303497.
  
  MFC after:	5 days
  X-MFC with:	r303497

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

Modified: head/sys/dev/pci/pci_pci.c
==============================================================================
--- head/sys/dev/pci/pci_pci.c	Sat Jul 30 20:02:08 2016	(r303558)
+++ head/sys/dev/pci/pci_pci.c	Sat Jul 30 20:31:12 2016	(r303559)
@@ -128,9 +128,11 @@ static devclass_t pcib_devclass;
 DEFINE_CLASS_0(pcib, pcib_driver, pcib_methods, sizeof(struct pcib_softc));
 DRIVER_MODULE(pcib, pci, pcib_driver, pcib_devclass, NULL, NULL);
 
-#ifdef NEW_PCIB
+#if defined(NEW_PCIB) || defined(PCI_HP)
 SYSCTL_DECL(_hw_pci);
+#endif
 
+#ifdef NEW_PCIB
 static int pci_clear_pcib;
 SYSCTL_INT(_hw_pci, OID_AUTO, clear_pcib, CTLFLAG_RDTUN, &pci_clear_pcib, 0,
     "Clear firmware-assigned resources for PCI-PCI bridge I/O windows.");



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