]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
migration: drop an unused include
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 3 May 2018 19:50:27 +0000 (22:50 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Jun 2018 16:20:37 +0000 (19:20 +0300)
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>
include/migration/vmstate.h
migration/savevm.c

index df463fd33d69b266497a239c8e9768b9306be63a..5877caed90f506f16726a080256acf1256840fea 100644 (file)
@@ -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;
index 4251125831186d70d26552b7e3eafd139419da4a..da724c52f2d0604720268b40a6237d265b8bd970 100644 (file)
@@ -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