diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-08-12 07:23:56 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-16 13:31:53 +0200 |
commit | d5938f29fea29581725426f203a74da746ca03e7 (patch) | |
tree | 0caa694b1084f73004a8eacced417b1ef3073fcc /include | |
parent | b58c5c2dd29db0eae0bed800ac1a311e14007cec (diff) |
Clean up inclusion of sysemu/sysemu.h
In my "build everything" tree, changing sysemu/sysemu.h triggers a
recompile of some 5400 out of 6600 objects (not counting tests and
objects that don't depend on qemu/osdep.h).
Almost a third of its inclusions are actually superfluous. Delete
them. Downgrade two more to qapi/qapi-types-run-state.h, and move one
from char/serial.h to char/serial.c.
hw/semihosting/config.c, monitor/monitor.c, qdev-monitor.c, and
stubs/semihost.c define variables declared in sysemu/sysemu.h without
including it. The compiler is cool with that, but include it anyway.
This doesn't reduce actual use much, as it's still included into
widely included headers. The next commit will tackle that.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190812052359.30071-27-armbru@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/arm/allwinner-a10.h | 1 | ||||
-rw-r--r-- | include/hw/char/serial.h | 1 | ||||
-rw-r--r-- | include/hw/i386/pc.h | 1 | ||||
-rw-r--r-- | include/hw/riscv/riscv_htif.h | 1 | ||||
-rw-r--r-- | include/hw/timer/stm32f2xx_timer.h | 1 | ||||
-rw-r--r-- | include/hw/virtio/virtio-bus.h | 1 | ||||
-rw-r--r-- | include/hw/xen/xen-legacy-backend.h | 1 | ||||
-rw-r--r-- | include/migration/global_state.h | 2 | ||||
-rw-r--r-- | include/sysemu/kvm_int.h | 1 | ||||
-rw-r--r-- | include/sysemu/replay.h | 2 | ||||
-rw-r--r-- | include/ui/spice-display.h | 1 |
11 files changed, 2 insertions, 11 deletions
diff --git a/include/hw/arm/allwinner-a10.h b/include/hw/arm/allwinner-a10.h index 101b72a71d..7d2d215630 100644 --- a/include/hw/arm/allwinner-a10.h +++ b/include/hw/arm/allwinner-a10.h @@ -9,7 +9,6 @@ #include "hw/net/allwinner_emac.h" #include "hw/ide/ahci.h" -#include "sysemu/sysemu.h" #include "target/arm/cpu.h" diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h index bfcbbb6e19..8be3d8a4f9 100644 --- a/include/hw/char/serial.h +++ b/include/hw/char/serial.h @@ -26,7 +26,6 @@ #ifndef HW_SERIAL_H #define HW_SERIAL_H -#include "sysemu/sysemu.h" #include "chardev/char-fe.h" #include "exec/memory.h" #include "qemu/fifo8.h" diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 859b64c51d..4bb9e29114 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -12,7 +12,6 @@ #include "qemu/range.h" #include "qemu/bitmap.h" #include "qemu/module.h" -#include "sysemu/sysemu.h" #include "hw/pci/pci.h" #include "hw/mem/pc-dimm.h" #include "hw/mem/nvdimm.h" diff --git a/include/hw/riscv/riscv_htif.h b/include/hw/riscv/riscv_htif.h index aabc059f32..fb9452cf51 100644 --- a/include/hw/riscv/riscv_htif.h +++ b/include/hw/riscv/riscv_htif.h @@ -22,7 +22,6 @@ #include "chardev/char.h" #include "chardev/char-fe.h" -#include "sysemu/sysemu.h" #include "exec/memory.h" #include "target/riscv/cpu.h" diff --git a/include/hw/timer/stm32f2xx_timer.h b/include/hw/timer/stm32f2xx_timer.h index e6a83237a5..a96bc08b1b 100644 --- a/include/hw/timer/stm32f2xx_timer.h +++ b/include/hw/timer/stm32f2xx_timer.h @@ -27,7 +27,6 @@ #include "hw/sysbus.h" #include "qemu/timer.h" -#include "sysemu/sysemu.h" #define TIM_CR1 0x00 #define TIM_CR2 0x04 diff --git a/include/hw/virtio/virtio-bus.h b/include/hw/virtio/virtio-bus.h index 8c9cc25b16..38c9399cd4 100644 --- a/include/hw/virtio/virtio-bus.h +++ b/include/hw/virtio/virtio-bus.h @@ -25,7 +25,6 @@ #ifndef VIRTIO_BUS_H #define VIRTIO_BUS_H -#include "sysemu/sysemu.h" #include "hw/qdev-core.h" #include "hw/virtio/virtio.h" diff --git a/include/hw/xen/xen-legacy-backend.h b/include/hw/xen/xen-legacy-backend.h index 07d4176ac1..5e6c56c4d6 100644 --- a/include/hw/xen/xen-legacy-backend.h +++ b/include/hw/xen/xen-legacy-backend.h @@ -3,7 +3,6 @@ #include "hw/xen/xen_common.h" #include "hw/xen/xen_pvdev.h" -#include "sysemu/sysemu.h" #include "net/net.h" #define TYPE_XENSYSDEV "xen-sysdev" diff --git a/include/migration/global_state.h b/include/migration/global_state.h index d307de8350..945eb35d5b 100644 --- a/include/migration/global_state.h +++ b/include/migration/global_state.h @@ -13,7 +13,7 @@ #ifndef QEMU_MIGRATION_GLOBAL_STATE_H #define QEMU_MIGRATION_GLOBAL_STATE_H -#include "sysemu/sysemu.h" +#include "qapi/qapi-types-run-state.h" void register_global_state(void); int global_state_store(void); diff --git a/include/sysemu/kvm_int.h b/include/sysemu/kvm_int.h index 5d341cc29b..72b2d1b3ae 100644 --- a/include/sysemu/kvm_int.h +++ b/include/sysemu/kvm_int.h @@ -10,7 +10,6 @@ #define QEMU_KVM_INT_H #include "exec/memory.h" -#include "sysemu/sysemu.h" #include "sysemu/accel.h" #include "sysemu/kvm.h" diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h index 3a7c58e423..2f2ccdbc98 100644 --- a/include/sysemu/replay.h +++ b/include/sysemu/replay.h @@ -12,8 +12,8 @@ * */ -#include "sysemu.h" #include "qapi/qapi-types-misc.h" +#include "qapi/qapi-types-run-state.h" #include "qapi/qapi-types-ui.h" /* replay clock kinds */ diff --git a/include/ui/spice-display.h b/include/ui/spice-display.h index 58bb5b4c53..4a47ffdd4c 100644 --- a/include/ui/spice-display.h +++ b/include/ui/spice-display.h @@ -26,7 +26,6 @@ #include "qemu/thread.h" #include "ui/qemu-pixman.h" #include "ui/console.h" -#include "sysemu/sysemu.h" #if defined(CONFIG_OPENGL_DMABUF) # if SPICE_SERVER_VERSION >= 0x000d01 /* release 0.13.1 */ |