diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2018-05-03 22:50:27 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-06-01 19:20:37 +0300 |
commit | 83ee768d6247bf121b5b8f4b7580fbbc1281d473 (patch) | |
tree | 8d325530569db1e3ae37651b38e5c2706e2e81df | |
parent | 070e9a1e837e1a2ba5c6450eb8ce2e18b29c4af8 (diff) | |
download | qemu-83ee768d6247bf121b5b8f4b7580fbbc1281d473.zip qemu-83ee768d6247bf121b5b8f4b7580fbbc1281d473.tar.gz qemu-83ee768d6247bf121b5b8f4b7580fbbc1281d473.tar.bz2 |
migration: drop an unused include
In the vmstate.h file, we just need a struct name. Use a forward
declaration instead of an include, then adjust the one affected .c file
to include the file that is no longer implicit from the header.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
-rw-r--r-- | include/migration/vmstate.h | 2 | ||||
-rw-r--r-- | migration/savevm.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index df463fd..5877cae 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -27,7 +27,7 @@ #ifndef QEMU_VMSTATE_H #define QEMU_VMSTATE_H -#include "migration/qjson.h" +typedef struct QJSON QJSON; typedef struct VMStateInfo VMStateInfo; typedef struct VMStateDescription VMStateDescription; diff --git a/migration/savevm.c b/migration/savevm.c index 4251125..da724c5 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -55,6 +55,7 @@ #include "io/channel-buffer.h" #include "io/channel-file.h" #include "sysemu/replay.h" +#include "qjson.h" #ifndef ETH_P_RARP #define ETH_P_RARP 0x8035 |