diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-08-12 07:23:45 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-16 13:31:52 +0200 |
commit | d6454270575da1f16a8923c7cb240e46ef243f72 (patch) | |
tree | a3b5feacbd4c320cbe04d0b79e2fdc29c350c167 /hw/pci-host | |
parent | 8a9358cc6e6a6ba3685e1b6e8bbf6fa194a38379 (diff) | |
download | qemu-d6454270575da1f16a8923c7cb240e46ef243f72.zip qemu-d6454270575da1f16a8923c7cb240e46ef243f72.tar.gz qemu-d6454270575da1f16a8923c7cb240e46ef243f72.tar.bz2 |
Include migration/vmstate.h less
In my "build everything" tree, changing migration/vmstate.h triggers a
recompile of some 2700 out of 6600 objects (not counting tests and
objects that don't depend on qemu/osdep.h).
hw/hw.h supposedly includes it for convenience. Several other headers
include it just to get VMStateDescription. The previous commit made
that unnecessary.
Include migration/vmstate.h only where it's still needed. Touching it
now recompiles only some 1600 objects.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190812052359.30071-16-armbru@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/pci-host')
-rw-r--r-- | hw/pci-host/bonito.c | 1 | ||||
-rw-r--r-- | hw/pci-host/designware.c | 1 | ||||
-rw-r--r-- | hw/pci-host/gpex.c | 1 | ||||
-rw-r--r-- | hw/pci-host/piix.c | 1 | ||||
-rw-r--r-- | hw/pci-host/ppce500.c | 1 | ||||
-rw-r--r-- | hw/pci-host/prep.c | 1 | ||||
-rw-r--r-- | hw/pci-host/q35.c | 1 | ||||
-rw-r--r-- | hw/pci-host/versatile.c | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index ca526bd..58870e0 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -45,6 +45,7 @@ #include "hw/irq.h" #include "hw/mips/mips.h" #include "hw/pci/pci_host.h" +#include "migration/vmstate.h" #include "sysemu/reset.h" #include "sysemu/sysemu.h" #include "exec/address-spaces.h" diff --git a/hw/pci-host/designware.c b/hw/pci-host/designware.c index de4300d..083f5bb 100644 --- a/hw/pci-host/designware.c +++ b/hw/pci-host/designware.c @@ -25,6 +25,7 @@ #include "hw/pci/pci_bridge.h" #include "hw/pci/pci_host.h" #include "hw/pci/pcie_port.h" +#include "migration/vmstate.h" #include "hw/irq.h" #include "hw/pci-host/designware.h" diff --git a/hw/pci-host/gpex.c b/hw/pci-host/gpex.c index 72c58a0..1a45c30 100644 --- a/hw/pci-host/gpex.c +++ b/hw/pci-host/gpex.c @@ -34,6 +34,7 @@ #include "hw/hw.h" #include "hw/irq.h" #include "hw/pci-host/gpex.h" +#include "migration/vmstate.h" #include "qemu/module.h" /**************************************************************************** diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index ecf634a..9e8c854 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -34,6 +34,7 @@ #include "qemu/range.h" #include "hw/xen/xen.h" #include "migration/qemu-file-types.h" +#include "migration/vmstate.h" #include "hw/pci-host/pam.h" #include "sysemu/reset.h" #include "sysemu/sysemu.h" diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c index 406ebf0..840869f 100644 --- a/hw/pci-host/ppce500.c +++ b/hw/pci-host/ppce500.c @@ -18,6 +18,7 @@ #include "hw/hw.h" #include "hw/irq.h" #include "hw/ppc/e500-ccsr.h" +#include "migration/vmstate.h" #include "hw/pci/pci.h" #include "hw/pci/pci_host.h" #include "qemu/bswap.h" diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index 2b68af9..34a3681 100644 --- a/hw/pci-host/prep.c +++ b/hw/pci-host/prep.c @@ -31,6 +31,7 @@ #include "hw/pci/pci.h" #include "hw/pci/pci_bus.h" #include "hw/pci/pci_host.h" +#include "migration/vmstate.h" #include "hw/i386/pc.h" #include "hw/irq.h" #include "hw/loader.h" diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index 0a010be..25335a8 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci-host/q35.c @@ -31,6 +31,7 @@ #include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci-host/q35.h" +#include "migration/vmstate.h" #include "qapi/error.h" #include "qapi/visitor.h" #include "qemu/module.h" diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c index 221cc40..1cd832a 100644 --- a/hw/pci-host/versatile.c +++ b/hw/pci-host/versatile.c @@ -9,6 +9,7 @@ #include "qemu/osdep.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "hw/irq.h" #include "hw/pci/pci.h" #include "hw/pci/pci_bus.h" |