[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 04/20] migration: drop an unused include
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH v2 04/20] migration: drop an unused include |
Date: |
Fri, 25 May 2018 19:47:44 +0300 |
we just need a struct name, let's add a forward
declaration instead of an include.
Signed-off-by: Michael S. Tsirkin <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 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
--
MST
- [Qemu-devel] [PATCH v2 00/20] include cleanups, Michael S. Tsirkin, 2018/05/25
- [Qemu-devel] [PATCH v2 02/20] crypto: use local path for local headers, Michael S. Tsirkin, 2018/05/25
- [Qemu-devel] [PATCH v2 03/20] hppa: use local path for local headers, Michael S. Tsirkin, 2018/05/25
- [Qemu-devel] [PATCH v2 04/20] migration: drop an unused include,
Michael S. Tsirkin <=
- [Qemu-devel] [PATCH v2 01/20] block: use local path for local headers, Michael S. Tsirkin, 2018/05/25
- [Qemu-devel] [PATCH v2 05/20] trace: use local path for local headers, Michael S. Tsirkin, 2018/05/25
- [Qemu-devel] [PATCH v2 08/20] ioapic: fix up includes, Michael S. Tsirkin, 2018/05/25
- [Qemu-devel] [PATCH v2 09/20] e1000e: use local path for local headers, Michael S. Tsirkin, 2018/05/25