diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-08-12 07:23:51 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-16 13:31:53 +0200 |
commit | a27bd6c779badb8d76e4430d810ef710a1b98f4e (patch) | |
tree | b7631b26b400537ff383b13e9e9deb299cef85b4 /hw/core | |
parent | db725815985654007ade0fd53590d613fd657208 (diff) |
Include hw/qdev-properties.h less
In my "build everything" tree, changing hw/qdev-properties.h triggers
a recompile of some 2700 out of 6600 objects (not counting tests and
objects that don't depend on qemu/osdep.h).
Many places including hw/qdev-properties.h (directly or via hw/qdev.h)
actually need only hw/qdev-core.h. Include hw/qdev-core.h there
instead.
hw/qdev.h is actually pointless: all it does is include hw/qdev-core.h
and hw/qdev-properties.h, which in turn includes hw/qdev-core.h.
Replace the remaining uses of hw/qdev.h by hw/qdev-properties.h.
While there, delete a few superfluous inclusions of hw/qdev-core.h.
Touching hw/qdev-properties.h now recompiles some 1200 objects.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190812052359.30071-22-armbru@redhat.com>
Diffstat (limited to 'hw/core')
-rw-r--r-- | hw/core/bus.c | 2 | ||||
-rw-r--r-- | hw/core/generic-loader.c | 1 | ||||
-rw-r--r-- | hw/core/or-irq.c | 1 | ||||
-rw-r--r-- | hw/core/platform-bus.c | 1 | ||||
-rw-r--r-- | hw/core/qdev-fw.c | 2 | ||||
-rw-r--r-- | hw/core/qdev-properties-system.c | 2 | ||||
-rw-r--r-- | hw/core/qdev-properties.c | 2 | ||||
-rw-r--r-- | hw/core/qdev.c | 2 | ||||
-rw-r--r-- | hw/core/register.c | 1 | ||||
-rw-r--r-- | hw/core/split-irq.c | 1 | ||||
-rw-r--r-- | hw/core/vm-change-state-handler.c | 2 |
11 files changed, 10 insertions, 7 deletions
diff --git a/hw/core/bus.c b/hw/core/bus.c index 17bc1edcde..7f3d2a3dbd 100644 --- a/hw/core/bus.c +++ b/hw/core/bus.c @@ -18,9 +18,9 @@ */ #include "qemu/osdep.h" +#include "hw/qdev-properties.h" #include "qemu/ctype.h" #include "qemu/module.h" -#include "hw/qdev.h" #include "qapi/error.h" void qbus_set_hotplug_handler(BusState *bus, Object *handler, Error **errp) diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c index 579fe5ed32..06d8d6466e 100644 --- a/hw/core/generic-loader.c +++ b/hw/core/generic-loader.c @@ -36,6 +36,7 @@ #include "sysemu/dma.h" #include "sysemu/reset.h" #include "hw/loader.h" +#include "hw/qdev-properties.h" #include "qapi/error.h" #include "qemu/module.h" #include "hw/core/generic-loader.h" diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c index 02949dae1a..18d63831cd 100644 --- a/hw/core/or-irq.c +++ b/hw/core/or-irq.c @@ -25,6 +25,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" #include "hw/or-irq.h" +#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "qemu/module.h" diff --git a/hw/core/platform-bus.c b/hw/core/platform-bus.c index 5fecb29239..9c9a9c271f 100644 --- a/hw/core/platform-bus.c +++ b/hw/core/platform-bus.c @@ -21,6 +21,7 @@ #include "qemu/osdep.h" #include "hw/platform-bus.h" +#include "hw/qdev-properties.h" #include "qemu/error-report.h" #include "qemu/module.h" #include "sysemu/sysemu.h" diff --git a/hw/core/qdev-fw.c b/hw/core/qdev-fw.c index aa35e9d0ac..a31958355f 100644 --- a/hw/core/qdev-fw.c +++ b/hw/core/qdev-fw.c @@ -16,8 +16,8 @@ */ #include "qemu/osdep.h" -#include "hw/qdev.h" #include "hw/fw-path-provider.h" +#include "hw/qdev-core.h" const char *qdev_fw_name(DeviceState *dev) { diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c index ba412dd2ca..fceab9afd5 100644 --- a/hw/core/qdev-properties-system.c +++ b/hw/core/qdev-properties-system.c @@ -12,7 +12,7 @@ #include "qemu/osdep.h" #include "net/net.h" -#include "hw/qdev.h" +#include "hw/qdev-properties.h" #include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "sysemu/block-backend.h" diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-properties.c index 8510ad14b0..ac28890e5a 100644 --- a/hw/core/qdev-properties.c +++ b/hw/core/qdev-properties.c @@ -1,6 +1,6 @@ #include "qemu/osdep.h" #include "net/net.h" -#include "hw/qdev.h" +#include "hw/qdev-properties.h" #include "qapi/error.h" #include "hw/pci/pci.h" #include "qapi/qapi-types-block.h" diff --git a/hw/core/qdev.c b/hw/core/qdev.c index b1fe40d20d..8c055df1cb 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -26,7 +26,6 @@ this API directly. */ #include "qemu/osdep.h" -#include "hw/qdev.h" #include "sysemu/sysemu.h" #include "qapi/error.h" #include "qapi/qapi-events-qdev.h" @@ -36,6 +35,7 @@ #include "qemu/option.h" #include "hw/hotplug.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "hw/boards.h" #include "hw/sysbus.h" #include "migration/vmstate.h" diff --git a/hw/core/register.c b/hw/core/register.c index bb5ab9d479..3c77396587 100644 --- a/hw/core/register.c +++ b/hw/core/register.c @@ -17,7 +17,6 @@ #include "qemu/osdep.h" #include "hw/register.h" -#include "hw/qdev.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/core/split-irq.c b/hw/core/split-irq.c index 6808e812b5..b5acc669fb 100644 --- a/hw/core/split-irq.c +++ b/hw/core/split-irq.c @@ -26,6 +26,7 @@ #include "qemu/osdep.h" #include "hw/core/split-irq.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "qapi/error.h" #include "qemu/module.h" diff --git a/hw/core/vm-change-state-handler.c b/hw/core/vm-change-state-handler.c index f814813bdd..e27ea45977 100644 --- a/hw/core/vm-change-state-handler.c +++ b/hw/core/vm-change-state-handler.c @@ -16,7 +16,7 @@ */ #include "qemu/osdep.h" -#include "hw/qdev.h" +#include "hw/qdev-core.h" static int qdev_get_dev_tree_depth(DeviceState *dev) { |