Re: [PATCH 5/5] include/hw/pci: Include hw/pci/pci.h where needed

2022-12-09 Thread Philippe Mathieu-Daudé
On 9/12/22 14:48, Markus Armbruster wrote: 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

[PATCH 5/5] include/hw/pci: Include hw/pci/pci.h where needed

2022-12-09 Thread Markus Armbruster
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 Armb