git: 07d82562d874 - main - bhyve: Make pci_bars local to pci_emul.c

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sat, 08 Oct 2022 15:33:52 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=07d82562d8740bd53603b4f7e0780403ae835333

commit 07d82562d8740bd53603b4f7e0780403ae835333
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-10-08 15:26:25 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-10-08 15:33:42 +0000

    bhyve: Make pci_bars local to pci_emul.c
    
    MFC after:      1 week
---
 usr.sbin/bhyve/pci_emul.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c
index 1b2f8b1a858e..2087c6597852 100644
--- a/usr.sbin/bhyve/pci_emul.c
+++ b/usr.sbin/bhyve/pci_emul.c
@@ -116,8 +116,9 @@ struct pci_bar_allocation {
 	enum pcibar_type type;
 	uint64_t size;
 };
-TAILQ_HEAD(pci_bar_list, pci_bar_allocation) pci_bars = TAILQ_HEAD_INITIALIZER(
-    pci_bars);
+
+static TAILQ_HEAD(pci_bar_list, pci_bar_allocation) pci_bars =
+    TAILQ_HEAD_INITIALIZER(pci_bars);
 
 #define	PCI_EMUL_IOBASE		0x2000
 #define	PCI_EMUL_IOLIMIT	0x10000