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/block | |
parent | 8a9358cc6e6a6ba3685e1b6e8bbf6fa194a38379 (diff) |
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/block')
-rw-r--r-- | hw/block/ecc.c | 1 | ||||
-rw-r--r-- | hw/block/fdc.c | 1 | ||||
-rw-r--r-- | hw/block/m25p80.c | 1 | ||||
-rw-r--r-- | hw/block/nand.c | 1 | ||||
-rw-r--r-- | hw/block/nvme.c | 1 | ||||
-rw-r--r-- | hw/block/onenand.c | 1 | ||||
-rw-r--r-- | hw/block/pflash_cfi01.c | 1 | ||||
-rw-r--r-- | hw/block/pflash_cfi02.c | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/hw/block/ecc.c b/hw/block/ecc.c index 48311d2609..f846ab3e01 100644 --- a/hw/block/ecc.c +++ b/hw/block/ecc.c @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include "hw/hw.h" +#include "migration/vmstate.h" #include "hw/block/flash.h" /* diff --git a/hw/block/fdc.c b/hw/block/fdc.c index 91d5f56cec..88feb0f451 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -36,6 +36,7 @@ #include "hw/irq.h" #include "hw/isa/isa.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "hw/block/block.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index dd87affcf5..9d395169b2 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -26,6 +26,7 @@ #include "hw/hw.h" #include "sysemu/block-backend.h" #include "hw/ssi/ssi.h" +#include "migration/vmstate.h" #include "qemu/bitops.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/block/nand.c b/hw/block/nand.c index 0a2736b50e..4a0d4677c3 100644 --- a/hw/block/nand.c +++ b/hw/block/nand.c @@ -23,6 +23,7 @@ #include "hw/block/flash.h" #include "sysemu/block-backend.h" #include "hw/qdev.h" +#include "migration/vmstate.h" #include "qapi/error.h" #include "qemu/error-report.h" #include "qemu/module.h" diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 36d6a8bb3a..079a8ffe80 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -31,6 +31,7 @@ #include "hw/hw.h" #include "hw/pci/msix.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "sysemu/sysemu.h" #include "qapi/error.h" #include "qapi/visitor.h" diff --git a/hw/block/onenand.c b/hw/block/onenand.c index b3644f7e89..18123f0499 100644 --- a/hw/block/onenand.c +++ b/hw/block/onenand.c @@ -26,6 +26,7 @@ #include "sysemu/block-backend.h" #include "exec/memory.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "qemu/error-report.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index a1ec1faae5..2d6f260491 100644 --- a/hw/block/pflash_cfi01.c +++ b/hw/block/pflash_cfi01.c @@ -50,6 +50,7 @@ #include "qemu/module.h" #include "qemu/option.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "sysemu/blockdev.h" #include "sysemu/sysemu.h" #include "trace.h" diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 42886f6af5..b7070cd8ec 100644 --- a/hw/block/pflash_cfi02.c +++ b/hw/block/pflash_cfi02.c @@ -43,6 +43,7 @@ #include "qemu/host-utils.h" #include "qemu/module.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "trace.h" #define PFLASH_DEBUG false |