qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 57/97] vmstate: Remove version_id from VMSTATE_SUB_A


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 57/97] vmstate: Remove version_id from VMSTATE_SUB_ARRAY
Date: Mon, 7 Apr 2014 05:21:15 +0200

None of its two users used it.

Signed-off-by: Juan Quintela <address@hidden>
---
 include/migration/vmstate.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 95d0a9a..59afc3e 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -231,9 +231,8 @@ extern const VMStateInfo vmstate_info_bitmap;
     .offset       = vmstate_offset_array(_state, _field, _type, _num),\
 }

-#define VMSTATE_SUB_ARRAY(_field, _state, _start, _num, _version, _info, 
_type) { \
+#define VMSTATE_SUB_ARRAY(_field, _state, _start, _num, _info, _type) { \
     .name       = (stringify(_field)),                               \
-    .version_id = (_version),                                        \
     .num        = (_num),                                            \
     .info       = &(_info),                                          \
     .size       = sizeof(_type),                                     \
@@ -607,10 +606,10 @@ extern const VMStateInfo vmstate_info_bitmap;
     VMSTATE_2DARRAY(_f, _s, _n1, _n2, NULL, vmstate_info_uint32, uint32_t)

 #define VMSTATE_UINT8_SUB_ARRAY(_f, _s, _start, _num)                \
-    VMSTATE_SUB_ARRAY(_f, _s, _start, _num, 0, vmstate_info_uint8, uint8_t)
+    VMSTATE_SUB_ARRAY(_f, _s, _start, _num, vmstate_info_uint8, uint8_t)

 #define VMSTATE_UINT32_SUB_ARRAY(_f, _s, _start, _num)                \
-    VMSTATE_SUB_ARRAY(_f, _s, _start, _num, 0, vmstate_info_uint32, uint32_t)
+    VMSTATE_SUB_ARRAY(_f, _s, _start, _num, vmstate_info_uint32, uint32_t)

 #define VMSTATE_BUFFER(_f, _s)                                        \
     VMSTATE_STATIC_BUFFER(_f, _s, 0, NULL, 0, sizeof(typeof_field(_s, _f)))
-- 
1.9.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]