]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
Include sysemu/hostmem.h less
authorMarkus Armbruster <armbru@redhat.com>
Mon, 12 Aug 2019 05:23:54 +0000 (07:23 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 16 Aug 2019 11:31:53 +0000 (13:31 +0200)
Move the HostMemoryBackend typedef from sysemu/hostmem.h to
qemu/typedefs.h.  This renders a few inclusions of sysemu/hostmem.h
superfluous; drop them.

Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190812052359.30071-25-armbru@redhat.com>

hw/mem/nvdimm.c
hw/virtio/virtio-pmem.c
include/hw/mem/pc-dimm.h
include/hw/virtio/virtio-pmem.h
include/qemu/typedefs.h
include/sysemu/hostmem.h

index 6fefd65092ac7ab0d9f442cb5e662051f068a1b8..375f9a588a61c2705a13f79388957efaa3823a24 100644 (file)
@@ -30,6 +30,7 @@
 #include "hw/mem/nvdimm.h"
 #include "hw/qdev-properties.h"
 #include "hw/mem/memory-device.h"
+#include "sysemu/hostmem.h"
 
 static void nvdimm_get_label_size(Object *obj, Visitor *v, const char *name,
                                   void *opaque, Error **errp)
index ff1a2ddb36d470ce76f60d79b078e761800a5474..c0c9395e559cf8b01878549b9f45f2627aa4df33 100644 (file)
@@ -21,6 +21,7 @@
 #include "hw/virtio/virtio-access.h"
 #include "standard-headers/linux/virtio_ids.h"
 #include "standard-headers/linux/virtio_pmem.h"
+#include "sysemu/hostmem.h"
 #include "block/aio.h"
 #include "block/thread-pool.h"
 
index 47b246f95c072a2129e2839d2ad5ea8e3d003135..289edc0f3d347526a12697b579b34004bf5f40eb 100644 (file)
@@ -17,7 +17,6 @@
 #define QEMU_PC_DIMM_H
 
 #include "exec/memory.h"
-#include "sysemu/hostmem.h"
 #include "hw/qdev-core.h"
 
 #define TYPE_PC_DIMM "pc-dimm"
index 8bf2ae780f02fcb10ae85112e498af55dd4077c0..33f1999320a5d88c12d7baa1cb423bce4d25a1d0 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "hw/virtio/virtio.h"
 #include "qapi/qapi-types-misc.h"
-#include "sysemu/hostmem.h"
 
 #define TYPE_VIRTIO_PMEM "virtio-pmem"
 
index a95ad6a11368999bfc6cca4dc12062369d3c34d4..7fe597331217b26eacbf7fdefaffb00265315293 100644 (file)
@@ -49,6 +49,7 @@ typedef struct FWCfgEntry FWCfgEntry;
 typedef struct FWCfgIoState FWCfgIoState;
 typedef struct FWCfgMemState FWCfgMemState;
 typedef struct FWCfgState FWCfgState;
+typedef struct HostMemoryBackend HostMemoryBackend;
 typedef struct HVFX86EmulatorState HVFX86EmulatorState;
 typedef struct I2CBus I2CBus;
 typedef struct I2SCodec I2SCodec;
index 92fa0e458c3426a43679464ea7afc60cd01ac5c3..afeb5db1b1396cfca62c078e28264a690a81af9f 100644 (file)
@@ -27,7 +27,6 @@
 #define MEMORY_BACKEND_CLASS(klass) \
     OBJECT_CLASS_CHECK(HostMemoryBackendClass, (klass), TYPE_MEMORY_BACKEND)
 
-typedef struct HostMemoryBackend HostMemoryBackend;
 typedef struct HostMemoryBackendClass HostMemoryBackendClass;
 
 /**