]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
include/hw/pci: Break inclusion loop pci_bridge.h and cxl.h
authorMarkus Armbruster <armbru@redhat.com>
Thu, 22 Dec 2022 10:03:24 +0000 (11:03 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:22 +0000 (01:54 -0500)
hw/pci/pci_bridge.h and hw/cxl/cxl.h include each other.

Fortunately, breaking the loop is merely a matter of deleting
unnecessary includes from headers, and adding them back in places
where they are now missing.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20221222100330.380143-2-armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
26 files changed:
hw/alpha/alpha_sys.h
hw/alpha/pci.c
hw/alpha/typhoon.c
hw/i386/acpi-build.c
hw/pci-bridge/i82801b11.c
hw/rdma/rdma_utils.c
hw/rdma/rdma_utils.h
hw/rdma/vmw/pvrdma.h
hw/scsi/virtio-scsi.c
hw/usb/hcd-ehci.h
hw/xen/xen_pt.h
include/hw/cxl/cxl.h
include/hw/cxl/cxl_cdat.h
include/hw/cxl/cxl_device.h
include/hw/cxl/cxl_pci.h
include/hw/i386/ich9.h
include/hw/i386/x86-iommu.h
include/hw/isa/vt82c686.h
include/hw/pci-host/designware.h
include/hw/pci-host/i440fx.h
include/hw/pci-host/ls7a.h
include/hw/pci-host/pnv_phb3.h
include/hw/pci-host/pnv_phb4.h
include/hw/pci-host/xilinx-pcie.h
include/hw/pci/pcie.h
include/hw/virtio/virtio-scsi.h

index 2263e821da547b09ab19700e3b2faa95676e08d6..a303c584383107b7d609c5ec61d26a21ac0a0146 100644 (file)
@@ -5,7 +5,6 @@
 
 #include "target/alpha/cpu-qom.h"
 #include "hw/pci/pci.h"
-#include "hw/pci/pci_host.h"
 #include "hw/boards.h"
 #include "hw/intc/i8259.h"
 
index 72251fcdf004c97707c3e1284d5dfc84e12b81ad..7c18297177b420b6cae9e318a4d546b030b40b55 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "hw/pci/pci_host.h"
 #include "alpha_sys.h"
 #include "qemu/log.h"
 #include "trace.h"
index bd39c8ca862199391095c12d58607bc257af9157..49a80550c54d4ed9ee40f9959cbf2c83240d8e39 100644 (file)
 #include "qemu/module.h"
 #include "qemu/units.h"
 #include "qapi/error.h"
+#include "hw/pci/pci_host.h"
 #include "cpu.h"
 #include "hw/irq.h"
 #include "alpha_sys.h"
-#include "qom/object.h"
 
 
 #define TYPE_TYPHOON_PCI_HOST_BRIDGE "typhoon-pcihost"
index aa15b11cdeaa5c7545839662ed503afe1f86a27d..127c4e2d5044dac0fe4bc753add9b2685f3297d5 100644 (file)
@@ -27,7 +27,7 @@
 #include "acpi-common.h"
 #include "qemu/bitmap.h"
 #include "qemu/error-report.h"
-#include "hw/pci/pci.h"
+#include "hw/pci/pci_bridge.h"
 #include "hw/cxl/cxl.h"
 #include "hw/core/cpu.h"
 #include "target/i386/cpu.h"
index d9f224818ba951b1e049689179e77320038c5d9c..f3b4a1461101d7ba64bbe23adbdc0b367f316696 100644 (file)
@@ -42,7 +42,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "hw/pci/pci.h"
+#include "hw/pci/pci_bridge.h"
 #include "migration/vmstate.h"
 #include "qemu/module.h"
 #include "hw/i386/ich9.h"
index 5a7ef63ad2871037f6563416f1c8825f8019bfa2..77008552f4685577ed0ec39ab9cfc6b7ce2ad78a 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "hw/pci/pci.h"
 #include "trace.h"
 #include "rdma_utils.h"
 
index 0c6414e7e0a8cda2fa8a5c25949228442b06cfd4..54e4f56eddde318264862fd728295b77e4bd9df0 100644 (file)
@@ -18,7 +18,6 @@
 #define RDMA_UTILS_H
 
 #include "qemu/error-report.h"
-#include "hw/pci/pci.h"
 #include "sysemu/dma.h"
 
 #define rdma_error_report(fmt, ...) \
index d08965d3e2d5331c83b8eb304e6d451a28b49fb8..0caf95ede883edda42c5dd406cf5f3823882c785 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "qemu/units.h"
 #include "qemu/notify.h"
-#include "hw/pci/pci.h"
 #include "hw/pci/msix.h"
 #include "chardev/char-fe.h"
 #include "hw/net/vmxnet3_defs.h"
index 6f6e2e32bacff5b085a9eb704b2814a7a36220b1..2b649ca9762fe0b544ab6d5d1c617b1bde4cd2e2 100644 (file)
@@ -22,6 +22,7 @@
 #include "qemu/iov.h"
 #include "qemu/module.h"
 #include "sysemu/block-backend.h"
+#include "sysemu/dma.h"
 #include "hw/qdev-properties.h"
 #include "hw/scsi/scsi.h"
 #include "scsi/constants.h"
index a173707d9bf81ca4752a6f28710d84b7af504775..4d4b2830b730008394d1529509ccc67cd57692e1 100644 (file)
@@ -23,7 +23,6 @@
 #include "sysemu/dma.h"
 #include "hw/pci/pci.h"
 #include "hw/sysbus.h"
-#include "qom/object.h"
 
 #ifndef EHCI_DEBUG
 #define EHCI_DEBUG   0
index e7c4316a7d65a2e1953ceda6af8c11aefb21bf66..cf10fc7bbf9e9fded1117cd58e85e16e457f6622 100644 (file)
@@ -2,7 +2,6 @@
 #define XEN_PT_H
 
 #include "hw/xen/xen_common.h"
-#include "hw/pci/pci.h"
 #include "xen-host-pci-device.h"
 #include "qom/object.h"
 
index 38e0e271d511536cb037518d93ed0ec60e3e195c..5129557beeaeebf949f9c24307e9c057846bda5f 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "qapi/qapi-types-machine.h"
 #include "qapi/qapi-visit-machine.h"
-#include "hw/pci/pci_bridge.h"
 #include "hw/pci/pci_host.h"
 #include "cxl_pci.h"
 #include "cxl_component.h"
index e9eda001424578e64c59e619a884ff4a5be9110f..7f67638685975182f558246710a30084e396058c 100644 (file)
@@ -11,6 +11,7 @@
 #define CXL_CDAT_H
 
 #include "hw/cxl/cxl_pci.h"
+#include "hw/pci/pcie_doe.h"
 
 /*
  * Reference:
index 449b0edfe9395d84574686b76cf1d78ff111f4a7..fd475b947bd25af8dc243d180f282999e1916ed9 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef CXL_DEVICE_H
 #define CXL_DEVICE_H
 
+#include "hw/pci/pci.h"
 #include "hw/register.h"
 
 /*
index 3cb79eca1ea468361be911b91ddff8ef8d2cc8ba..aca14845abf2d768b145cff84e212698f44fe83c 100644 (file)
@@ -11,8 +11,6 @@
 #define CXL_PCI_H
 
 #include "qemu/compiler.h"
-#include "hw/pci/pci.h"
-#include "hw/pci/pcie.h"
 #include "hw/cxl/cxl_cdat.h"
 
 #define CXL_VENDOR_ID 0x1e98
index 23ee8e371ba1805d91691c63da23039eb1b58e32..222781e8b9961934a2ec26ecf687742fd400a0da 100644 (file)
@@ -5,12 +5,8 @@
 #include "hw/sysbus.h"
 #include "hw/i386/pc.h"
 #include "hw/isa/apm.h"
-#include "hw/pci/pci.h"
-#include "hw/pci/pcie_host.h"
-#include "hw/pci/pci_bridge.h"
 #include "hw/acpi/acpi.h"
 #include "hw/acpi/ich9.h"
-#include "hw/pci/pci_bus.h"
 #include "qom/object.h"
 
 void ich9_lpc_set_irq(void *opaque, int irq_num, int level);
index 7637edb430a4dc5fad88e4c516791c1cf24c0901..8d8d53b18b6200fd15eb06a7a6b7bd8e994e0971 100644 (file)
@@ -21,7 +21,6 @@
 #define HW_I386_X86_IOMMU_H
 
 #include "hw/sysbus.h"
-#include "hw/pci/pci.h"
 #include "hw/pci/msi.h"
 #include "qom/object.h"
 
index eaa07881c52f8dfbb8c0d59b9e88ee414382d4fb..e273cd38dcf5e775484676622b88400013e4a3d0 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef HW_VT82C686_H
 #define HW_VT82C686_H
 
-#include "hw/pci/pci.h"
 
 #define TYPE_VT82C686B_ISA "vt82c686b-isa"
 #define TYPE_VT82C686B_USB_UHCI "vt82c686b-usb-uhci"
index 6d9b51ae67cd9bf52c2338842955eaf2f349dedf..908f3d946bebad1091404bd847ff037566f20aa6 100644 (file)
@@ -22,9 +22,6 @@
 #define DESIGNWARE_H
 
 #include "hw/sysbus.h"
-#include "hw/pci/pci.h"
-#include "hw/pci/pci_bus.h"
-#include "hw/pci/pcie_host.h"
 #include "hw/pci/pci_bridge.h"
 #include "qom/object.h"
 
index d02bf1ed6b9342b24a536f35d2c8e13dcacfe02c..fc93e2273241bfa858706e5bca58080aa07ec457 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef HW_PCI_I440FX_H
 #define HW_PCI_I440FX_H
 
-#include "hw/pci/pci_bus.h"
+#include "hw/pci/pci.h"
 #include "hw/pci-host/pam.h"
 #include "qom/object.h"
 
index 8061c4bbbf84e8911cf8927e18fcfbd24b76e554..ff4b9799122dba6cb2e37fae023f509f2c04becf 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef HW_LS7A_H
 #define HW_LS7A_H
 
-#include "hw/pci/pci.h"
-#include "hw/pci/pcie_host.h"
 #include "hw/pci-host/pam.h"
 #include "qemu/units.h"
 #include "qemu/range.h"
index 4854f6d2f6978559c52dddc879b0790b499d6eeb..f791ebda9be4b165c19abed22d18da20dbaaf9fc 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef PCI_HOST_PNV_PHB3_H
 #define PCI_HOST_PNV_PHB3_H
 
-#include "hw/pci/pcie_host.h"
-#include "hw/pci/pcie_port.h"
 #include "hw/ppc/xics.h"
 #include "qom/object.h"
 #include "hw/pci-host/pnv_phb.h"
index 50d4faa00122aa677f07df17299318829b32a723..d9cea3f952f93b1fad41521fb542ca614bf152e3 100644 (file)
@@ -10,8 +10,7 @@
 #ifndef PCI_HOST_PNV_PHB4_H
 #define PCI_HOST_PNV_PHB4_H
 
-#include "hw/pci/pcie_host.h"
-#include "hw/pci/pcie_port.h"
+#include "hw/pci/pci_bus.h"
 #include "hw/ppc/xive.h"
 #include "qom/object.h"
 
index 89be88d87fdd5328527c5e1583dec59baa892d86..e1b3c1c280466fbd72933dfda374c39b58d9d01d 100644 (file)
@@ -21,7 +21,6 @@
 #define HW_XILINX_PCIE_H
 
 #include "hw/sysbus.h"
-#include "hw/pci/pci.h"
 #include "hw/pci/pci_bridge.h"
 #include "hw/pci/pcie_host.h"
 #include "qom/object.h"
index 698d3de8514dc2c33ec7284c42722ee6f14fdb92..798a262a0a6cbd919781bc5fd8000e5e0abec76a 100644 (file)
@@ -26,7 +26,6 @@
 #include "hw/pci/pcie_aer.h"
 #include "hw/pci/pcie_sriov.h"
 #include "hw/hotplug.h"
-#include "hw/pci/pcie_doe.h"
 
 typedef enum {
     /* for attention and power indicator */
index a36aad9c869546f51315f8148acec6d19f056338..37b75e15e3e59c6c4865fceeb605003488ec2608 100644 (file)
@@ -20,7 +20,6 @@
 #define VIRTIO_SCSI_SENSE_SIZE 0
 #include "standard-headers/linux/virtio_scsi.h"
 #include "hw/virtio/virtio.h"
-#include "hw/pci/pci.h"
 #include "hw/scsi/scsi.h"
 #include "chardev/char-fe.h"
 #include "sysemu/iothread.h"