[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 12/31] migration: drop an unused include
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL 12/31] migration: drop an unused include |
Date: |
Fri, 1 Jun 2018 19:26:57 +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 <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
include/migration/vmstate.h | 2 +-
migration/savevm.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index df463fd33d..5877caed90 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 4251125831..da724c52f2 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
--
MST
- [Qemu-devel] [PULL 01/31] vhost: allow backends to filter memory sections, (continued)
- [Qemu-devel] [PULL 01/31] vhost: allow backends to filter memory sections, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 02/31] vhost-user: allow slave to send fds via slave channel, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 04/31] vhost-user: support registering external host notifiers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 03/31] vhost-user: introduce shared vhost-user state, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 05/31] libvhost-user: support host notifier, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 10/31] crypto: use local path for local headers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 07/31] osdep: add wait.h compat macros, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 08/31] libqtest: fail if child coredumps, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 06/31] vhost-user-bridge: support host notifier, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 11/31] hppa: use local path for local headers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 12/31] migration: drop an unused include,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL 09/31] block: use local path for local headers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 13/31] trace: use local path for local headers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 14/31] display: use local path for local headers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 17/31] e1000e: use local path for local headers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 20/31] vhost-scsi: drop an unused include, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 16/31] ioapic: fix up includes, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 18/31] rocker: drop an unused include, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 19/31] ppc: use local path for local headers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 15/31] ide: use local path for local headers, Michael S. Tsirkin, 2018/06/01
- [Qemu-devel] [PULL 21/31] sd: fix up include, Michael S. Tsirkin, 2018/06/01