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/sd | |
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/sd')
-rw-r--r-- | hw/sd/bcm2835_sdhost.c | 1 | ||||
-rw-r--r-- | hw/sd/milkymist-memcard.c | 1 | ||||
-rw-r--r-- | hw/sd/pl181.c | 1 | ||||
-rw-r--r-- | hw/sd/pxa2xx_mmci.c | 1 | ||||
-rw-r--r-- | hw/sd/sd.c | 1 | ||||
-rw-r--r-- | hw/sd/sdhci.c | 1 | ||||
-rw-r--r-- | hw/sd/ssi-sd.c | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/hw/sd/bcm2835_sdhost.c b/hw/sd/bcm2835_sdhost.c index 4609cc0..4a80fbc 100644 --- a/hw/sd/bcm2835_sdhost.c +++ b/hw/sd/bcm2835_sdhost.c @@ -17,6 +17,7 @@ #include "sysemu/blockdev.h" #include "hw/irq.h" #include "hw/sd/bcm2835_sdhost.h" +#include "migration/vmstate.h" #include "trace.h" #define TYPE_BCM2835_SDHOST_BUS "bcm2835-sdhost-bus" diff --git a/hw/sd/milkymist-memcard.c b/hw/sd/milkymist-memcard.c index b8d2347..dcb7169 100644 --- a/hw/sd/milkymist-memcard.c +++ b/hw/sd/milkymist-memcard.c @@ -26,6 +26,7 @@ #include "qemu/module.h" #include "hw/hw.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "sysemu/sysemu.h" #include "trace.h" #include "qapi/error.h" diff --git a/hw/sd/pl181.c b/hw/sd/pl181.c index 3c615f2..8033fe4 100644 --- a/hw/sd/pl181.c +++ b/hw/sd/pl181.c @@ -10,6 +10,7 @@ #include "qemu/osdep.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "hw/irq.h" #include "hw/sd/sd.h" #include "qemu/log.h" diff --git a/hw/sd/pxa2xx_mmci.c b/hw/sd/pxa2xx_mmci.c index 1eb1248..020cd54 100644 --- a/hw/sd/pxa2xx_mmci.c +++ b/hw/sd/pxa2xx_mmci.c @@ -15,6 +15,7 @@ #include "hw/hw.h" #include "hw/irq.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "hw/arm/pxa.h" #include "hw/sd/sd.h" #include "hw/qdev.h" @@ -38,6 +38,7 @@ #include "hw/registerfields.h" #include "sysemu/block-backend.h" #include "hw/sd/sd.h" +#include "migration/vmstate.h" #include "qapi/error.h" #include "qemu/bitmap.h" #include "hw/qdev-properties.h" diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 46c7fbd..f9db39c 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -32,6 +32,7 @@ #include "qemu/timer.h" #include "qemu/bitops.h" #include "hw/sd/sdhci.h" +#include "migration/vmstate.h" #include "sdhci-internal.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/sd/ssi-sd.c b/hw/sd/ssi-sd.c index 9bd6511..571aabe 100644 --- a/hw/sd/ssi-sd.c +++ b/hw/sd/ssi-sd.c @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include "sysemu/blockdev.h" #include "hw/ssi/ssi.h" +#include "migration/vmstate.h" #include "hw/sd/sd.h" #include "qapi/error.h" #include "qemu/module.h" |