]> git.proxmox.com Git - mirror_qemu.git/commit
include/hw/pci: Include hw/pci/pci.h where needed
authorMarkus Armbruster <armbru@redhat.com>
Thu, 22 Dec 2022 10:03:29 +0000 (11:03 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:22 +0000 (01:54 -0500)
commit104a2dd65700dbc1e0f69fab200e657e6af2fc75
tree0b69451091dfb04355f03692bd8fbe76ae7063ca
parentedf5ca5dbe8031e7814ea34eb109b8f7d4024ae5
include/hw/pci: Include hw/pci/pci.h where needed

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