[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 32/51] include/hw/pci: Include hw/pci/pci.h where needed
From: |
Michael S. Tsirkin |
Subject: |
[PULL 32/51] include/hw/pci: Include hw/pci/pci.h where needed |
Date: |
Thu, 5 Jan 2023 04:22:08 -0500 |
From: Markus Armbruster <armbru@redhat.com>
hw/pci/pcie_sriov.h needs PCI_NUM_REGIONS. Without the previous
commit, this would close an inclusion loop: hw/pci/pci.h used to
include hw/pci/pcie.h for PCIExpressDevice, which includes
pcie_sriov.h for PCIESriovPF, which now includes hw/pci/pci.h for
PCI_NUM_REGIONS.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221222100330.380143-7-armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
include/hw/pci/pcie_sriov.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/hw/pci/pcie_sriov.h b/include/hw/pci/pcie_sriov.h
index 80f5c84e75..96cc743309 100644
--- a/include/hw/pci/pcie_sriov.h
+++ b/include/hw/pci/pcie_sriov.h
@@ -13,6 +13,8 @@
#ifndef QEMU_PCIE_SRIOV_H
#define QEMU_PCIE_SRIOV_H
+#include "hw/pci/pci.h"
+
struct PCIESriovPF {
uint16_t num_vfs; /* Number of virtual functions created */
uint8_t vf_bar_type[PCI_NUM_REGIONS]; /* Store type for each VF bar */
--
MST
- [PULL 47/51] tests: acpi: Add and whitelist *.topology blobs, (continued)
[PULL 51/51] vhost-scsi: fix memleak of vsc->inflight, Michael S. Tsirkin, 2023/01/05
[PULL 28/51] include/hw/cxl: Move typedef PXBDev to cxl.h, and put it to use, Michael S. Tsirkin, 2023/01/05
[PULL 32/51] include/hw/pci: Include hw/pci/pci.h where needed,
Michael S. Tsirkin <=
[PULL 33/51] include/hw/cxl: Break inclusion loop cxl_pci.h and cxl_cdat_h, Michael S. Tsirkin, 2023/01/05
Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Michael S. Tsirkin, 2023/01/05
- Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Michael S. Tsirkin, 2023/01/05
- Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Peter Maydell, 2023/01/05
- Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Michael S. Tsirkin, 2023/01/05
- Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Michael S. Tsirkin, 2023/01/05
- Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Peter Maydell, 2023/01/06
- Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Michael S. Tsirkin, 2023/01/08
- Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Markus Armbruster, 2023/01/09
- Re: [PULL 00/51] virtio,pc,pci: features, cleanups, fixes, Markus Armbruster, 2023/01/10