@@ -31,7 +31,7 @@ extern const VMStateDescription vmstate_ptimer;
VMSTATE_STRUCT_POINTER(_field, _state, vmstate_ptimer, ptimer_state)
#define VMSTATE_PTIMER_ARRAY(_f, _s, _n) \
- VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(_f, _s, _n, 0, \
+ VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(_f, _s, _n, \
vmstate_ptimer, ptimer_state)
#endif
@@ -305,12 +305,11 @@ extern const VMStateInfo vmstate_info_bitmap;
.offset = vmstate_offset_array(_state, _field, _type, _num), \
}
-#define VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(_f, _s, _n, _v, _vmsd, _type) { \
+#define VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(_f, _s, _n, _vmsd, _type) { \
.name = (stringify(_f)), \
- .version_id = (_v), \
.num = (_n), \
.vmsd = &(_vmsd), \
- .size = sizeof(_type *), \
+ .size = sizeof(_type *), \
.flags = VMS_ARRAY|VMS_STRUCT|VMS_ARRAY_OF_POINTER, \
.offset = vmstate_offset_array(_s, _f, _type*, _n), \
}
Signed-off-by: Juan Quintela <quintela@redhat.com> --- include/hw/ptimer.h | 2 +- include/migration/vmstate.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-)