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/net | |
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/net')
-rw-r--r-- | hw/net/allwinner_emac.c | 1 | ||||
-rw-r--r-- | hw/net/cadence_gem.c | 1 | ||||
-rw-r--r-- | hw/net/can/can_kvaser_pci.c | 1 | ||||
-rw-r--r-- | hw/net/can/can_mioe3680_pci.c | 1 | ||||
-rw-r--r-- | hw/net/can/can_pcm3680_pci.c | 1 | ||||
-rw-r--r-- | hw/net/can/can_sja1000.c | 1 | ||||
-rw-r--r-- | hw/net/dp8393x.c | 1 | ||||
-rw-r--r-- | hw/net/e1000.c | 1 | ||||
-rw-r--r-- | hw/net/e1000e.c | 1 | ||||
-rw-r--r-- | hw/net/eepro100.c | 1 | ||||
-rw-r--r-- | hw/net/ftgmac100.c | 1 | ||||
-rw-r--r-- | hw/net/imx_fec.c | 1 | ||||
-rw-r--r-- | hw/net/lan9118.c | 1 | ||||
-rw-r--r-- | hw/net/lance.c | 1 | ||||
-rw-r--r-- | hw/net/milkymist-minimac2.c | 1 | ||||
-rw-r--r-- | hw/net/mipsnet.c | 1 | ||||
-rw-r--r-- | hw/net/ne2000-isa.c | 1 | ||||
-rw-r--r-- | hw/net/ne2000-pci.c | 1 | ||||
-rw-r--r-- | hw/net/ne2000.c | 1 | ||||
-rw-r--r-- | hw/net/pcnet-pci.c | 1 | ||||
-rw-r--r-- | hw/net/pcnet.c | 1 | ||||
-rw-r--r-- | hw/net/rocker/rocker.c | 1 | ||||
-rw-r--r-- | hw/net/rtl8139.c | 1 | ||||
-rw-r--r-- | hw/net/smc91c111.c | 1 | ||||
-rw-r--r-- | hw/net/spapr_llan.c | 1 | ||||
-rw-r--r-- | hw/net/stellaris_enet.c | 1 | ||||
-rw-r--r-- | hw/net/sungem.c | 1 | ||||
-rw-r--r-- | hw/net/sunhme.c | 1 | ||||
-rw-r--r-- | hw/net/vmxnet3.c | 1 | ||||
-rw-r--r-- | hw/net/xgmac.c | 1 |
30 files changed, 30 insertions, 0 deletions
diff --git a/hw/net/allwinner_emac.c b/hw/net/allwinner_emac.c index dad25bd4e9..f4b8c4fa67 100644 --- a/hw/net/allwinner_emac.c +++ b/hw/net/allwinner_emac.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "net/net.h" #include "qemu/fifo8.h" #include "hw/irq.h" diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index f4e4a4dd87..ab6f7e8262 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -27,6 +27,7 @@ #include "hw/irq.h" #include "hw/net/cadence_gem.h" +#include "migration/vmstate.h" #include "qapi/error.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/net/can/can_kvaser_pci.c b/hw/net/can/can_kvaser_pci.c index 3b8e38eb83..10963ef58c 100644 --- a/hw/net/can/can_kvaser_pci.c +++ b/hw/net/can/can_kvaser_pci.c @@ -39,6 +39,7 @@ #include "hw/hw.h" #include "hw/irq.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "net/can_emu.h" #include "can_sja1000.h" diff --git a/hw/net/can/can_mioe3680_pci.c b/hw/net/can/can_mioe3680_pci.c index c09ae69261..9e060dff01 100644 --- a/hw/net/can/can_mioe3680_pci.c +++ b/hw/net/can/can_mioe3680_pci.c @@ -35,6 +35,7 @@ #include "hw/hw.h" #include "hw/irq.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "net/can_emu.h" #include "can_sja1000.h" diff --git a/hw/net/can/can_pcm3680_pci.c b/hw/net/can/can_pcm3680_pci.c index 843a76cf37..5d12f0c552 100644 --- a/hw/net/can/can_pcm3680_pci.c +++ b/hw/net/can/can_pcm3680_pci.c @@ -35,6 +35,7 @@ #include "hw/hw.h" #include "hw/irq.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "net/can_emu.h" #include "can_sja1000.h" diff --git a/hw/net/can/can_sja1000.c b/hw/net/can/can_sja1000.c index ee079d355f..6c84be6d29 100644 --- a/hw/net/can/can_sja1000.c +++ b/hw/net/can/can_sja1000.c @@ -30,6 +30,7 @@ #include "chardev/char.h" #include "hw/hw.h" #include "hw/irq.h" +#include "migration/vmstate.h" #include "net/can_emu.h" #include "can_sja1000.h" diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index 70a78ad337..8d0cafc6ba 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c @@ -20,6 +20,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "net/net.h" #include "qapi/error.h" #include "qemu/module.h" diff --git a/hw/net/e1000.c b/hw/net/e1000.c index a023ceb27c..e4e91382f0 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -28,6 +28,7 @@ #include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "net/net.h" #include "net/checksum.h" #include "sysemu/sysemu.h" diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c index 581f7d03d5..22e3132581 100644 --- a/hw/net/e1000e.c +++ b/hw/net/e1000e.c @@ -42,6 +42,7 @@ #include "sysemu/sysemu.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h" +#include "migration/vmstate.h" #include "e1000_regs.h" diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index e0cf0c46d7..3c1c534cbf 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -44,6 +44,7 @@ #include "qemu/units.h" #include "hw/hw.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "net/net.h" #include "net/eth.h" #include "hw/nvram/eeprom93xx.h" diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c index 2848bff3e5..4d0f56c123 100644 --- a/hw/net/ftgmac100.c +++ b/hw/net/ftgmac100.c @@ -20,6 +20,7 @@ #include "net/checksum.h" #include "net/eth.h" #include "hw/net/mii.h" +#include "migration/vmstate.h" /* For crc32 */ #include <zlib.h> diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index fe9d9028fa..5a22542aaf 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -24,6 +24,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" #include "hw/net/imx_fec.h" +#include "migration/vmstate.h" #include "sysemu/dma.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c index e2da54cbd8..937d5603e2 100644 --- a/hw/net/lan9118.c +++ b/hw/net/lan9118.c @@ -12,6 +12,7 @@ #include "qemu/osdep.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "net/net.h" #include "net/eth.h" #include "hw/irq.h" diff --git a/hw/net/lance.c b/hw/net/lance.c index 2978c01d58..0d094327cb 100644 --- a/hw/net/lance.c +++ b/hw/net/lance.c @@ -39,6 +39,7 @@ #include "qemu/module.h" #include "qemu/timer.h" #include "hw/sparc/sparc32_dma.h" +#include "migration/vmstate.h" #include "hw/net/lance.h" #include "trace.h" #include "sysemu/sysemu.h" diff --git a/hw/net/milkymist-minimac2.c b/hw/net/milkymist-minimac2.c index bad1066781..a7d879f0ab 100644 --- a/hw/net/milkymist-minimac2.c +++ b/hw/net/milkymist-minimac2.c @@ -28,6 +28,7 @@ #include "hw/hw.h" #include "hw/irq.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "trace.h" #include "net/net.h" #include "qemu/log.h" diff --git a/hw/net/mipsnet.c b/hw/net/mipsnet.c index 007c94aa30..3910beb9a6 100644 --- a/hw/net/mipsnet.c +++ b/hw/net/mipsnet.c @@ -5,6 +5,7 @@ #include "qemu/module.h" #include "trace.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" /* MIPSnet register offsets */ diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c index 3490e54c5a..5195c107d0 100644 --- a/hw/net/ne2000-isa.c +++ b/hw/net/ne2000-isa.c @@ -26,6 +26,7 @@ #include "hw/isa/isa.h" #include "hw/net/ne2000-isa.h" #include "hw/qdev.h" +#include "migration/vmstate.h" #include "ne2000.h" #include "sysemu/sysemu.h" #include "qapi/error.h" diff --git a/hw/net/ne2000-pci.c b/hw/net/ne2000-pci.c index 4f28e31baa..084d92f955 100644 --- a/hw/net/ne2000-pci.c +++ b/hw/net/ne2000-pci.c @@ -25,6 +25,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "ne2000.h" #include "sysemu/sysemu.h" diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c index 4b9231c495..7731b5acd1 100644 --- a/hw/net/ne2000.c +++ b/hw/net/ne2000.c @@ -26,6 +26,7 @@ #include "net/eth.h" #include "qemu/module.h" #include "hw/irq.h" +#include "migration/vmstate.h" #include "ne2000.h" #include "sysemu/sysemu.h" #include "trace.h" diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c index df8cb6621f..a77d2c9368 100644 --- a/hw/net/pcnet-pci.c +++ b/hw/net/pcnet-pci.c @@ -30,6 +30,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "net/net.h" #include "qemu/module.h" #include "qemu/timer.h" diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c index f73e3422f4..bfcfcf5be3 100644 --- a/hw/net/pcnet.c +++ b/hw/net/pcnet.c @@ -39,6 +39,7 @@ #include "qemu/log.h" #include "hw/irq.h" #include "hw/qdev.h" +#include "migration/vmstate.h" #include "net/net.h" #include "net/eth.h" #include "qemu/timer.h" diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c index bd54612f2a..4ce8f62a2a 100644 --- a/hw/net/rocker/rocker.c +++ b/hw/net/rocker/rocker.c @@ -18,6 +18,7 @@ #include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "hw/pci/msix.h" #include "net/net.h" #include "net/eth.h" diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index 09273171e5..9975af44dd 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -55,6 +55,7 @@ #include "hw/hw.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "sysemu/dma.h" #include "qemu/module.h" #include "qemu/timer.h" diff --git a/hw/net/smc91c111.c b/hw/net/smc91c111.c index f5149124e6..67e3f2408e 100644 --- a/hw/net/smc91c111.c +++ b/hw/net/smc91c111.c @@ -9,6 +9,7 @@ #include "qemu/osdep.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "net/net.h" #include "hw/irq.h" #include "hw/net/smc91c111.h" diff --git a/hw/net/spapr_llan.c b/hw/net/spapr_llan.c index 1867c355e3..0ce5e37a28 100644 --- a/hw/net/spapr_llan.c +++ b/hw/net/spapr_llan.c @@ -33,6 +33,7 @@ #include "qemu/module.h" #include "net/net.h" #include "hw/qdev.h" +#include "migration/vmstate.h" #include "hw/ppc/spapr.h" #include "hw/ppc/spapr_vio.h" #include "sysemu/sysemu.h" diff --git a/hw/net/stellaris_enet.c b/hw/net/stellaris_enet.c index 756ac5600b..154214ca1d 100644 --- a/hw/net/stellaris_enet.c +++ b/hw/net/stellaris_enet.c @@ -10,6 +10,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "net/net.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/net/sungem.c b/hw/net/sungem.c index 89bcf749d1..f5e30725be 100644 --- a/hw/net/sungem.c +++ b/hw/net/sungem.c @@ -9,6 +9,7 @@ #include "qemu/osdep.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "qemu/log.h" #include "qemu/module.h" #include "net/net.h" diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c index 8b8603e696..9d8fd70f51 100644 --- a/hw/net/sunhme.c +++ b/hw/net/sunhme.c @@ -25,6 +25,7 @@ #include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci/pci.h" +#include "migration/vmstate.h" #include "hw/net/mii.h" #include "net/net.h" #include "qemu/module.h" diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index 10d01d0058..88a7c13a96 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -26,6 +26,7 @@ #include "hw/pci/msix.h" #include "hw/pci/msi.h" #include "migration/register.h" +#include "migration/vmstate.h" #include "vmxnet3.h" #include "vmxnet3_defs.h" diff --git a/hw/net/xgmac.c b/hw/net/xgmac.c index c2efc77452..ded8b9cf9d 100644 --- a/hw/net/xgmac.c +++ b/hw/net/xgmac.c @@ -27,6 +27,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" #include "hw/sysbus.h" +#include "migration/vmstate.h" #include "qemu/log.h" #include "qemu/module.h" #include "net/net.h" |