diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-05-23 16:35:08 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-06-12 13:20:20 +0200 |
commit | a8d2532645cf5ce4f75981f81dfe363efc35d05c (patch) | |
tree | 9572944040e99117f69f46d6e99488e8073f65c3 /include | |
parent | 0b8fa32f551e863bb548a11394239239270dd3dc (diff) |
Include qemu-common.h exactly where needed
No header includes qemu-common.h after this commit, as prescribed by
qemu-common.h's file comment.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190523143508.25387-5-armbru@redhat.com>
[Rebased with conflicts resolved automatically, except for
include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c
block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c
target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h
target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h
target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h
target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and
net/tap-bsd.c fixed up]
Diffstat (limited to 'include')
75 files changed, 1 insertions, 77 deletions
diff --git a/include/authz/base.h b/include/authz/base.h index 14a59a0425..0782981ad8 100644 --- a/include/authz/base.h +++ b/include/authz/base.h @@ -21,7 +21,6 @@ #ifndef QAUTHZ_BASE_H #define QAUTHZ_BASE_H -#include "qemu-common.h" #include "qapi/error.h" #include "qom/object.h" diff --git a/include/block/aio.h b/include/block/aio.h index 0ca25dfec6..6b0d52f732 100644 --- a/include/block/aio.h +++ b/include/block/aio.h @@ -14,7 +14,6 @@ #ifndef QEMU_AIO_H #define QEMU_AIO_H -#include "qemu-common.h" #include "qemu/queue.h" #include "qemu/event_notifier.h" #include "qemu/thread.h" diff --git a/include/block/dirty-bitmap.h b/include/block/dirty-bitmap.h index 8044ace63e..62682eb865 100644 --- a/include/block/dirty-bitmap.h +++ b/include/block/dirty-bitmap.h @@ -1,7 +1,6 @@ #ifndef BLOCK_DIRTY_BITMAP_H #define BLOCK_DIRTY_BITMAP_H -#include "qemu-common.h" #include "qapi/qapi-types-block-core.h" #include "qemu/hbitmap.h" diff --git a/include/block/write-threshold.h b/include/block/write-threshold.h index 234d2193e0..80d8aab5d0 100644 --- a/include/block/write-threshold.h +++ b/include/block/write-threshold.h @@ -12,7 +12,6 @@ #ifndef BLOCK_WRITE_THRESHOLD_H #define BLOCK_WRITE_THRESHOLD_H -#include "qemu-common.h" /* * bdrv_write_threshold_set: diff --git a/include/chardev/char-io.h b/include/chardev/char-io.h index 9638da5100..1709b59c9f 100644 --- a/include/chardev/char-io.h +++ b/include/chardev/char-io.h @@ -24,7 +24,6 @@ #ifndef CHAR_IO_H #define CHAR_IO_H -#include "qemu-common.h" #include "io/channel.h" #include "chardev/char.h" diff --git a/include/crypto/random.h b/include/crypto/random.h index fde592904e..c09998894f 100644 --- a/include/crypto/random.h +++ b/include/crypto/random.h @@ -21,7 +21,6 @@ #ifndef QCRYPTO_RANDOM_H #define QCRYPTO_RANDOM_H -#include "qemu-common.h" /** * qcrypto_random_bytes: diff --git a/include/crypto/xts.h b/include/crypto/xts.h index 3c8967ac6c..39ccaed822 100644 --- a/include/crypto/xts.h +++ b/include/crypto/xts.h @@ -26,7 +26,6 @@ #ifndef QCRYPTO_XTS_H #define QCRYPTO_XTS_H -#include "qemu-common.h" #define XTS_BLOCK_SIZE 16 diff --git a/include/disas/disas.h b/include/disas/disas.h index 4d48c13c65..15da511f49 100644 --- a/include/disas/disas.h +++ b/include/disas/disas.h @@ -1,7 +1,6 @@ #ifndef QEMU_DISAS_H #define QEMU_DISAS_H -#include "qemu-common.h" #ifdef NEED_CPU_H #include "cpu.h" diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index f4fed7d82e..536ea58f81 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -19,7 +19,6 @@ #ifndef CPU_ALL_H #define CPU_ALL_H -#include "qemu-common.h" #include "exec/cpu-common.h" #include "exec/memory.h" #include "qemu/thread.h" diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 31f0ecc461..16034ee651 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -20,7 +20,6 @@ #ifndef EXEC_ALL_H #define EXEC_ALL_H -#include "qemu-common.h" #include "exec/tb-context.h" #include "sysemu/cpus.h" diff --git a/include/hw/acpi/tco.h b/include/hw/acpi/tco.h index 52ad767ddd..d19dd59353 100644 --- a/include/hw/acpi/tco.h +++ b/include/hw/acpi/tco.h @@ -9,7 +9,6 @@ #ifndef HW_ACPI_TCO_H #define HW_ACPI_TCO_H -#include "qemu-common.h" /* As per ICH9 spec, the internal timer has an error of ~0.6s on every tick */ #define TCO_TICK_NSEC 600000000LL diff --git a/include/hw/arm/allwinner-a10.h b/include/hw/arm/allwinner-a10.h index 6305b9c586..bbfbaf01c7 100644 --- a/include/hw/arm/allwinner-a10.h +++ b/include/hw/arm/allwinner-a10.h @@ -1,6 +1,5 @@ #ifndef ALLWINNER_H_ -#include "qemu-common.h" #include "qemu/error-report.h" #include "hw/char/serial.h" #include "hw/arm/boot.h" diff --git a/include/hw/arm/bcm2835_peripherals.h b/include/hw/arm/bcm2835_peripherals.h index e79c21771f..6b17f6a382 100644 --- a/include/hw/arm/bcm2835_peripherals.h +++ b/include/hw/arm/bcm2835_peripherals.h @@ -11,7 +11,6 @@ #ifndef BCM2835_PERIPHERALS_H #define BCM2835_PERIPHERALS_H -#include "qemu-common.h" #include "hw/sysbus.h" #include "hw/char/pl011.h" #include "hw/char/bcm2835_aux.h" diff --git a/include/hw/arm/exynos4210.h b/include/hw/arm/exynos4210.h index 27c684e851..aa137271c0 100644 --- a/include/hw/arm/exynos4210.h +++ b/include/hw/arm/exynos4210.h @@ -25,7 +25,6 @@ #ifndef EXYNOS4210_H #define EXYNOS4210_H -#include "qemu-common.h" #include "exec/memory.h" #include "target/arm/cpu-qom.h" diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h index 73005f05ae..a72094204e 100644 --- a/include/hw/arm/virt.h +++ b/include/hw/arm/virt.h @@ -30,7 +30,6 @@ #ifndef QEMU_ARM_VIRT_H #define QEMU_ARM_VIRT_H -#include "qemu-common.h" #include "exec/hwaddr.h" #include "qemu/notify.h" #include "hw/boards.h" diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/arm/xlnx-zynqmp.h index cd90b04310..1b17f13b0b 100644 --- a/include/hw/arm/xlnx-zynqmp.h +++ b/include/hw/arm/xlnx-zynqmp.h @@ -17,7 +17,6 @@ #ifndef XLNX_ZYNQMP_H -#include "qemu-common.h" #include "hw/arm/boot.h" #include "hw/intc/arm_gic.h" #include "hw/net/cadence_gem.h" diff --git a/include/hw/block/fdc.h b/include/hw/block/fdc.h index 3b813c7f7d..8cece84326 100644 --- a/include/hw/block/fdc.h +++ b/include/hw/block/fdc.h @@ -1,7 +1,6 @@ #ifndef HW_FDC_H #define HW_FDC_H -#include "qemu-common.h" #include "qapi/qapi-types-block.h" /* fdc.c */ diff --git a/include/hw/dma/bcm2835_dma.h b/include/hw/dma/bcm2835_dma.h index 60138f4d31..91ed8d05d1 100644 --- a/include/hw/dma/bcm2835_dma.h +++ b/include/hw/dma/bcm2835_dma.h @@ -6,7 +6,6 @@ #ifndef BCM2835_DMA_H #define BCM2835_DMA_H -#include "qemu-common.h" #include "hw/sysbus.h" typedef struct { diff --git a/include/hw/fw-path-provider.h b/include/hw/fw-path-provider.h index 5df893a3d8..10d1bd4959 100644 --- a/include/hw/fw-path-provider.h +++ b/include/hw/fw-path-provider.h @@ -18,7 +18,6 @@ #ifndef FW_PATH_PROVIDER_H #define FW_PATH_PROVIDER_H -#include "qemu-common.h" #include "qom/object.h" #define TYPE_FW_PATH_PROVIDER "fw-path-provider" diff --git a/include/hw/i2c/ppc4xx_i2c.h b/include/hw/i2c/ppc4xx_i2c.h index b3450bacf7..aa2a2bf9de 100644 --- a/include/hw/i2c/ppc4xx_i2c.h +++ b/include/hw/i2c/ppc4xx_i2c.h @@ -27,7 +27,6 @@ #ifndef PPC4XX_I2C_H #define PPC4XX_I2C_H -#include "qemu-common.h" #include "hw/sysbus.h" #include "hw/i2c/i2c.h" diff --git a/include/hw/i386/apic.h b/include/hw/i386/apic.h index a9f6c0aa33..da1d2fe155 100644 --- a/include/hw/i386/apic.h +++ b/include/hw/i386/apic.h @@ -1,7 +1,6 @@ #ifndef APIC_H #define APIC_H -#include "qemu-common.h" /* apic.c */ void apic_deliver_irq(uint8_t dest, uint8_t dest_mode, uint8_t delivery_mode, diff --git a/include/hw/ipmi/ipmi.h b/include/hw/ipmi/ipmi.h index 99661d2bf0..011faf22e9 100644 --- a/include/hw/ipmi/ipmi.h +++ b/include/hw/ipmi/ipmi.h @@ -26,7 +26,6 @@ #define HW_IPMI_H #include "exec/memory.h" -#include "qemu-common.h" #include "hw/qdev.h" #define MAX_IPMI_MSG_SIZE 300 diff --git a/include/hw/isa/apm.h b/include/hw/isa/apm.h index b7098bf7ca..0f93602936 100644 --- a/include/hw/isa/apm.h +++ b/include/hw/isa/apm.h @@ -1,7 +1,6 @@ #ifndef APM_H #define APM_H -#include "qemu-common.h" #include "hw/hw.h" #include "exec/memory.h" diff --git a/include/hw/isa/superio.h b/include/hw/isa/superio.h index 345f006081..b151dcd753 100644 --- a/include/hw/isa/superio.h +++ b/include/hw/isa/superio.h @@ -10,7 +10,6 @@ #ifndef HW_ISA_SUPERIO_H #define HW_ISA_SUPERIO_H -#include "qemu-common.h" #include "sysemu/sysemu.h" #include "hw/isa/isa.h" diff --git a/include/hw/lm32/lm32_pic.h b/include/hw/lm32/lm32_pic.h index e6479b8f63..9e5e038437 100644 --- a/include/hw/lm32/lm32_pic.h +++ b/include/hw/lm32/lm32_pic.h @@ -1,7 +1,6 @@ #ifndef QEMU_HW_LM32_PIC_H #define QEMU_HW_LM32_PIC_H -#include "qemu-common.h" uint32_t lm32_pic_get_ip(DeviceState *d); uint32_t lm32_pic_get_im(DeviceState *d); diff --git a/include/hw/nmi.h b/include/hw/nmi.h index ad857f3832..a1e128724e 100644 --- a/include/hw/nmi.h +++ b/include/hw/nmi.h @@ -22,7 +22,6 @@ #ifndef NMI_H #define NMI_H -#include "qemu-common.h" #include "qom/object.h" #define TYPE_NMI "nmi" diff --git a/include/hw/pci-host/pam.h b/include/hw/pci-host/pam.h index 6116c638f9..fec5cd35d6 100644 --- a/include/hw/pci-host/pam.h +++ b/include/hw/pci-host/pam.h @@ -50,7 +50,6 @@ * 0xf0000 - 0xfffff System BIOS Area Memory Segments */ -#include "qemu-common.h" #include "exec/memory.h" #define SMRAM_C_BASE 0xa0000 diff --git a/include/hw/pci/msi.h b/include/hw/pci/msi.h index 8440eaee11..4087688486 100644 --- a/include/hw/pci/msi.h +++ b/include/hw/pci/msi.h @@ -21,7 +21,6 @@ #ifndef QEMU_MSI_H #define QEMU_MSI_H -#include "qemu-common.h" #include "hw/pci/pci.h" struct MSIMessage { diff --git a/include/hw/pci/msix.h b/include/hw/pci/msix.h index 08acfa836e..4c4a60c739 100644 --- a/include/hw/pci/msix.h +++ b/include/hw/pci/msix.h @@ -1,7 +1,6 @@ #ifndef QEMU_MSIX_H #define QEMU_MSIX_H -#include "qemu-common.h" #include "hw/pci/pci.h" #define MSIX_CAP_LENGTH 12 diff --git a/include/hw/pci/shpc.h b/include/hw/pci/shpc.h index 18f6ec1cd5..bd8204f64e 100644 --- a/include/hw/pci/shpc.h +++ b/include/hw/pci/shpc.h @@ -1,7 +1,6 @@ #ifndef SHPC_H #define SHPC_H -#include "qemu-common.h" #include "exec/memory.h" #include "hw/hotplug.h" #include "hw/pci/pci.h" diff --git a/include/hw/pci/slotid_cap.h b/include/hw/pci/slotid_cap.h index a777ea0e49..8b4dc0ce83 100644 --- a/include/hw/pci/slotid_cap.h +++ b/include/hw/pci/slotid_cap.h @@ -1,7 +1,6 @@ #ifndef PCI_SLOTID_CAP_H #define PCI_SLOTID_CAP_H -#include "qemu-common.h" int slotid_cap_init(PCIDevice *dev, int nslots, uint8_t chassis, diff --git a/include/hw/ppc/openpic.h b/include/hw/ppc/openpic.h index dad08fe9be..7642a8ea1d 100644 --- a/include/hw/ppc/openpic.h +++ b/include/hw/ppc/openpic.h @@ -1,7 +1,6 @@ #ifndef OPENPIC_H #define OPENPIC_H -#include "qemu-common.h" #include "hw/sysbus.h" #include "hw/qdev-core.h" #include "qom/cpu.h" diff --git a/include/hw/ptimer.h b/include/hw/ptimer.h index 0731d9aef1..2b866902aa 100644 --- a/include/hw/ptimer.h +++ b/include/hw/ptimer.h @@ -8,7 +8,6 @@ #ifndef PTIMER_H #define PTIMER_H -#include "qemu-common.h" #include "qemu/timer.h" #include "migration/vmstate.h" diff --git a/include/hw/sd/sdhci.h b/include/hw/sd/sdhci.h index f321767c56..cbf415e43a 100644 --- a/include/hw/sd/sdhci.h +++ b/include/hw/sd/sdhci.h @@ -25,7 +25,6 @@ #ifndef SDHCI_H #define SDHCI_H -#include "qemu-common.h" #include "hw/pci/pci.h" #include "hw/sysbus.h" #include "hw/sd/sd.h" diff --git a/include/hw/sh4/sh_intc.h b/include/hw/sh4/sh_intc.h index adfedb2efc..b7c2404334 100644 --- a/include/hw/sh4/sh_intc.h +++ b/include/hw/sh4/sh_intc.h @@ -1,7 +1,6 @@ #ifndef SH_INTC_H #define SH_INTC_H -#include "qemu-common.h" #include "hw/irq.h" typedef unsigned char intc_enum; diff --git a/include/hw/sparc/sun4m_iommu.h b/include/hw/sparc/sun4m_iommu.h index 938937eb04..482266c6a7 100644 --- a/include/hw/sparc/sun4m_iommu.h +++ b/include/hw/sparc/sun4m_iommu.h @@ -25,7 +25,6 @@ #ifndef SUN4M_IOMMU_H #define SUN4M_IOMMU_H -#include "qemu-common.h" #include "hw/sysbus.h" #define IOMMU_NREGS (4 * 4096 / 4) diff --git a/include/hw/sparc/sun4u_iommu.h b/include/hw/sparc/sun4u_iommu.h index a760172e8e..5472d489cf 100644 --- a/include/hw/sparc/sun4u_iommu.h +++ b/include/hw/sparc/sun4u_iommu.h @@ -27,7 +27,6 @@ #ifndef SUN4U_IOMMU_H #define SUN4U_IOMMU_H -#include "qemu-common.h" #include "hw/sysbus.h" #define IOMMU_NREGS 3 diff --git a/include/hw/stream.h b/include/hw/stream.h index 15774f07ab..d02f62ca89 100644 --- a/include/hw/stream.h +++ b/include/hw/stream.h @@ -1,7 +1,6 @@ #ifndef STREAM_H #define STREAM_H -#include "qemu-common.h" #include "qom/object.h" /* stream slave. Used until qdev provides a generic way. */ diff --git a/include/hw/timer/m48t59.h b/include/hw/timer/m48t59.h index 6f8db04fce..43efc91f56 100644 --- a/include/hw/timer/m48t59.h +++ b/include/hw/timer/m48t59.h @@ -1,7 +1,6 @@ #ifndef HW_M48T59_H #define HW_M48T59_H -#include "qemu-common.h" #include "qom/object.h" #define TYPE_NVRAM "nvram" diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 1155b79678..e05bc09794 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -21,7 +21,6 @@ #ifndef HW_VFIO_VFIO_COMMON_H #define HW_VFIO_VFIO_COMMON_H -#include "qemu-common.h" #include "exec/memory.h" #include "qemu/queue.h" #include "qemu/notify.h" diff --git a/include/hw/virtio/vhost-scsi-common.h b/include/hw/virtio/vhost-scsi-common.h index 4eab767ee8..54357164f0 100644 --- a/include/hw/virtio/vhost-scsi-common.h +++ b/include/hw/virtio/vhost-scsi-common.h @@ -14,7 +14,6 @@ #ifndef VHOST_SCSI_COMMON_H #define VHOST_SCSI_COMMON_H -#include "qemu-common.h" #include "hw/qdev.h" #include "hw/virtio/virtio-scsi.h" #include "hw/virtio/vhost.h" diff --git a/include/hw/virtio/vhost-scsi.h b/include/hw/virtio/vhost-scsi.h index 04658d14f5..df5bfdb188 100644 --- a/include/hw/virtio/vhost-scsi.h +++ b/include/hw/virtio/vhost-scsi.h @@ -14,7 +14,6 @@ #ifndef VHOST_SCSI_H #define VHOST_SCSI_H -#include "qemu-common.h" #include "hw/qdev.h" #include "hw/virtio/virtio-scsi.h" #include "hw/virtio/vhost.h" diff --git a/include/hw/virtio/vhost-user-blk.h b/include/hw/virtio/vhost-user-blk.h index 51457fb857..8dbf11c6f0 100644 --- a/include/hw/virtio/vhost-user-blk.h +++ b/include/hw/virtio/vhost-user-blk.h @@ -16,7 +16,6 @@ #define VHOST_USER_BLK_H #include "standard-headers/linux/virtio_blk.h" -#include "qemu-common.h" #include "hw/qdev.h" #include "hw/block/block.h" #include "chardev/char-fe.h" diff --git a/include/hw/virtio/vhost-user-scsi.h b/include/hw/virtio/vhost-user-scsi.h index 738f9288bd..1b332ea910 100644 --- a/include/hw/virtio/vhost-user-scsi.h +++ b/include/hw/virtio/vhost-user-scsi.h @@ -17,7 +17,6 @@ #ifndef VHOST_USER_SCSI_H #define VHOST_USER_SCSI_H -#include "qemu-common.h" #include "hw/qdev.h" #include "hw/virtio/virtio-scsi.h" #include "hw/virtio/vhost.h" diff --git a/include/hw/xen/xen.h b/include/hw/xen/xen.h index ba039c146d..9c7b5f78dc 100644 --- a/include/hw/xen/xen.h +++ b/include/hw/xen/xen.h @@ -8,7 +8,6 @@ * /usr/include/xen, so it can be included unconditionally. */ -#include "qemu-common.h" #include "exec/cpu-common.h" #include "hw/irq.h" diff --git a/include/io/channel.h b/include/io/channel.h index 59460cb1ec..d4557f0930 100644 --- a/include/io/channel.h +++ b/include/io/channel.h @@ -21,7 +21,6 @@ #ifndef QIO_CHANNEL_H #define QIO_CHANNEL_H -#include "qemu-common.h" #include "qom/object.h" #include "qemu/coroutine.h" #include "block/aio.h" diff --git a/include/io/dns-resolver.h b/include/io/dns-resolver.h index 1a162185cc..a475e978c8 100644 --- a/include/io/dns-resolver.h +++ b/include/io/dns-resolver.h @@ -21,7 +21,6 @@ #ifndef QIO_DNS_RESOLVER_H #define QIO_DNS_RESOLVER_H -#include "qemu-common.h" #include "qapi/qapi-types-sockets.h" #include "qom/object.h" #include "io/task.h" diff --git a/include/io/task.h b/include/io/task.h index 57d8ba835e..5cb9faf9f2 100644 --- a/include/io/task.h +++ b/include/io/task.h @@ -21,7 +21,6 @@ #ifndef QIO_TASK_H #define QIO_TASK_H -#include "qemu-common.h" #include "qom/object.h" typedef struct QIOTask QIOTask; diff --git a/include/migration/colo.h b/include/migration/colo.h index f6fbe23ec9..1636e6f907 100644 --- a/include/migration/colo.h +++ b/include/migration/colo.h @@ -13,7 +13,6 @@ #ifndef QEMU_COLO_H #define QEMU_COLO_H -#include "qemu-common.h" #include "qapi/qapi-types-migration.h" enum colo_event { diff --git a/include/migration/failover.h b/include/migration/failover.h index 4c37218dcc..475f88f533 100644 --- a/include/migration/failover.h +++ b/include/migration/failover.h @@ -13,7 +13,6 @@ #ifndef QEMU_FAILOVER_H #define QEMU_FAILOVER_H -#include "qemu-common.h" #include "qapi/qapi-types-migration.h" void failover_init_state(void); diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h index 86656297f1..06cfcd8f36 100644 --- a/include/monitor/monitor.h +++ b/include/monitor/monitor.h @@ -1,7 +1,6 @@ #ifndef MONITOR_H #define MONITOR_H -#include "qemu-common.h" #include "block/block.h" #include "qapi/qapi-types-misc.h" #include "qemu/readline.h" diff --git a/include/net/announce.h b/include/net/announce.h index 892d302b65..04a035f679 100644 --- a/include/net/announce.h +++ b/include/net/announce.h @@ -9,7 +9,6 @@ #ifndef QEMU_NET_ANNOUNCE_H #define QEMU_NET_ANNOUNCE_H -#include "qemu-common.h" #include "qapi/qapi-types-net.h" #include "qemu/timer.h" diff --git a/include/net/filter.h b/include/net/filter.h index 49da666ac0..9bc6fa3cc6 100644 --- a/include/net/filter.h +++ b/include/net/filter.h @@ -11,7 +11,6 @@ #include "qapi/qapi-types-net.h" #include "qom/object.h" -#include "qemu-common.h" #include "net/queue.h" #define TYPE_NETFILTER "netfilter" diff --git a/include/net/queue.h b/include/net/queue.h index 5469fdbeaa..c0269bb1dc 100644 --- a/include/net/queue.h +++ b/include/net/queue.h @@ -24,7 +24,6 @@ #ifndef QEMU_NET_QUEUE_H #define QEMU_NET_QUEUE_H -#include "qemu-common.h" typedef struct NetPacket NetPacket; typedef struct NetQueue NetQueue; diff --git a/include/net/tap.h b/include/net/tap.h index ce6f8418ac..5d585515f9 100644 --- a/include/net/tap.h +++ b/include/net/tap.h @@ -26,7 +26,6 @@ #ifndef QEMU_NET_TAP_H #define QEMU_NET_TAP_H -#include "qemu-common.h" #include "standard-headers/linux/virtio_net.h" int tap_enable(NetClientState *nc); diff --git a/include/qemu-common.h b/include/qemu-common.h index e15adc20dc..0235cd3b91 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -1,6 +1,4 @@ - -/* Common header file that is included by all of QEMU. - * +/* * This file is supposed to be included only by .c files. No header file should * depend on qemu-common.h, as this would easily lead to circular header * dependencies. diff --git a/include/qemu-io.h b/include/qemu-io.h index 7433239372..3af513004a 100644 --- a/include/qemu-io.h +++ b/include/qemu-io.h @@ -18,7 +18,6 @@ #ifndef QEMU_IO_H #define QEMU_IO_H -#include "qemu-common.h" #define CMD_FLAG_GLOBAL ((int)0x80000000) /* don't iterate "args" */ diff --git a/include/qemu/base64.h b/include/qemu/base64.h index 815d85267d..0a3c5c9c53 100644 --- a/include/qemu/base64.h +++ b/include/qemu/base64.h @@ -21,7 +21,6 @@ #ifndef QEMU_BASE64_H #define QEMU_BASE64_H -#include "qemu-common.h" /** diff --git a/include/qemu/buffer.h b/include/qemu/buffer.h index b2ead1f051..3a909aeca4 100644 --- a/include/qemu/buffer.h +++ b/include/qemu/buffer.h @@ -21,7 +21,6 @@ #ifndef QEMU_BUFFER_H #define QEMU_BUFFER_H -#include "qemu-common.h" typedef struct Buffer Buffer; diff --git a/include/qemu/crc32c.h b/include/qemu/crc32c.h index dafb6a1ada..5b78884c38 100644 --- a/include/qemu/crc32c.h +++ b/include/qemu/crc32c.h @@ -28,7 +28,6 @@ #ifndef QEMU_CRC32C_H #define QEMU_CRC32C_H -#include "qemu-common.h" uint32_t crc32c(uint32_t crc, const uint8_t *data, unsigned int length); diff --git a/include/qemu/event_notifier.h b/include/qemu/event_notifier.h index 599c99f1a5..3380b662f3 100644 --- a/include/qemu/event_notifier.h +++ b/include/qemu/event_notifier.h @@ -13,7 +13,6 @@ #ifndef QEMU_EVENT_NOTIFIER_H #define QEMU_EVENT_NOTIFIER_H -#include "qemu-common.h" #ifdef _WIN32 #include <windows.h> diff --git a/include/qemu/filemonitor.h b/include/qemu/filemonitor.h index 70e613dfe3..a41ceb0244 100644 --- a/include/qemu/filemonitor.h +++ b/include/qemu/filemonitor.h @@ -21,7 +21,6 @@ #ifndef QEMU_FILEMONITOR_H #define QEMU_FILEMONITOR_H -#include "qemu-common.h" typedef struct QFileMonitor QFileMonitor; diff --git a/include/qemu/mmap-alloc.h b/include/qemu/mmap-alloc.h index eec98d82c1..e786266b92 100644 --- a/include/qemu/mmap-alloc.h +++ b/include/qemu/mmap-alloc.h @@ -1,7 +1,6 @@ #ifndef QEMU_MMAP_ALLOC_H #define QEMU_MMAP_ALLOC_H -#include "qemu-common.h" size_t qemu_fd_getpagesize(int fd); diff --git a/include/qemu/qdist.h b/include/qemu/qdist.h index 54ece760d6..bfb3211537 100644 --- a/include/qemu/qdist.h +++ b/include/qemu/qdist.h @@ -7,7 +7,6 @@ #ifndef QEMU_QDIST_H #define QEMU_QDIST_H -#include "qemu-common.h" #include "qemu/bitops.h" /* diff --git a/include/qemu/throttle.h b/include/qemu/throttle.h index abeb886d93..05f6346137 100644 --- a/include/qemu/throttle.h +++ b/include/qemu/throttle.h @@ -25,7 +25,6 @@ #ifndef THROTTLE_H #define THROTTLE_H -#include "qemu-common.h" #include "qapi/qapi-types-block-core.h" #include "qemu/timer.h" diff --git a/include/qemu/timer.h b/include/qemu/timer.h index a86330c987..5d978e1634 100644 --- a/include/qemu/timer.h +++ b/include/qemu/timer.h @@ -1,7 +1,6 @@ #ifndef QEMU_TIMER_H #define QEMU_TIMER_H -#include "qemu-common.h" #include "qemu/bitops.h" #include "qemu/notify.h" #include "qemu/host-utils.h" diff --git a/include/qemu/uuid.h b/include/qemu/uuid.h index 037357d990..129c45f2c5 100644 --- a/include/qemu/uuid.h +++ b/include/qemu/uuid.h @@ -16,7 +16,6 @@ #ifndef QEMU_UUID_H #define QEMU_UUID_H -#include "qemu-common.h" /* Version 4 UUID (pseudo random numbers), RFC4122 4.4. */ diff --git a/include/sysemu/cryptodev-vhost.h b/include/sysemu/cryptodev-vhost.h index fb26b86977..f42824fbde 100644 --- a/include/sysemu/cryptodev-vhost.h +++ b/include/sysemu/cryptodev-vhost.h @@ -24,7 +24,6 @@ #ifndef CRYPTODEV_VHOST_H #define CRYPTODEV_VHOST_H -#include "qemu-common.h" #include "hw/virtio/vhost.h" #include "hw/virtio/vhost-backend.h" #include "chardev/char.h" diff --git a/include/sysemu/cryptodev.h b/include/sysemu/cryptodev.h index faeb6f891a..92bbb79131 100644 --- a/include/sysemu/cryptodev.h +++ b/include/sysemu/cryptodev.h @@ -24,7 +24,6 @@ #define CRYPTODEV_H #include "qom/object.h" -#include "qemu-common.h" /** * CryptoDevBackend: diff --git a/include/sysemu/hax.h b/include/sysemu/hax.h index 1f6c46186d..f005995c50 100644 --- a/include/sysemu/hax.h +++ b/include/sysemu/hax.h @@ -22,7 +22,6 @@ #ifndef QEMU_HAX_H #define QEMU_HAX_H -#include "qemu-common.h" int hax_sync_vcpus(void); int hax_init_vcpu(CPUState *cpu); diff --git a/include/sysemu/hvf.h b/include/sysemu/hvf.h index 300bf3e9a8..d275b5a843 100644 --- a/include/sysemu/hvf.h +++ b/include/sysemu/hvf.h @@ -13,7 +13,6 @@ #ifndef HVF_H #define HVF_H -#include "qemu-common.h" #include "qemu/bitops.h" #include "exec/memory.h" #include "sysemu/accel.h" diff --git a/include/sysemu/qtest.h b/include/sysemu/qtest.h index 096ddfc20c..cd114b8d80 100644 --- a/include/sysemu/qtest.h +++ b/include/sysemu/qtest.h @@ -14,7 +14,6 @@ #ifndef QTEST_H #define QTEST_H -#include "qemu-common.h" extern bool qtest_allowed; diff --git a/include/sysemu/rng.h b/include/sysemu/rng.h index 27b37da05d..2a02f47771 100644 --- a/include/sysemu/rng.h +++ b/include/sysemu/rng.h @@ -14,7 +14,6 @@ #define QEMU_RNG_H #include "qom/object.h" -#include "qemu-common.h" #define TYPE_RNG_BACKEND "rng-backend" #define RNG_BACKEND(obj) \ diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h index 14488820f6..9e7451fb52 100644 --- a/include/sysemu/tpm_backend.h +++ b/include/sysemu/tpm_backend.h @@ -14,7 +14,6 @@ #define TPM_BACKEND_H #include "qom/object.h" -#include "qemu-common.h" #include "qemu/option.h" #include "sysemu/tpm.h" #include "qapi/error.h" diff --git a/include/sysemu/whpx.h b/include/sysemu/whpx.h index d200ee01d0..4794e8effe 100644 --- a/include/sysemu/whpx.h +++ b/include/sysemu/whpx.h @@ -13,7 +13,6 @@ #ifndef QEMU_WHPX_H #define QEMU_WHPX_H -#include "qemu-common.h" int whpx_init_vcpu(CPUState *cpu); int whpx_vcpu_exec(CPUState *cpu); |