[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 47/97] vmstate: remove version from all variants of
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 47/97] vmstate: remove version from all variants of VMSTATE_STRUCT_POINTER* |
Date: |
Mon, 7 Apr 2014 05:21:05 +0200 |
There were no more users of them.
Signed-off-by: Juan Quintela <address@hidden>
---
include/migration/vmstate.h | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 3f2084b..61d677e 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -310,18 +310,8 @@ extern const VMStateInfo vmstate_info_bitmap;
.offset = vmstate_offset_value(_state, _field, _type), \
}
-#define VMSTATE_STRUCT_POINTER_V(_field, _state, _version, _vmsd, _type) { \
+#define VMSTATE_STRUCT_POINTER_TEST(_field, _state, _test, _vmsd, _type) { \
.name = (stringify(_field)), \
- .version_id = (_version), \
- .vmsd = &(_vmsd), \
- .size = sizeof(_type *), \
- .flags = VMS_STRUCT|VMS_POINTER, \
- .offset = vmstate_offset_pointer(_state, _field, _type), \
-}
-
-#define VMSTATE_STRUCT_POINTER_TEST_V(_field, _state, _test, _version, _vmsd,
_type) { \
- .name = (stringify(_field)), \
- .version_id = (_version), \
.field_exists = (_test), \
.vmsd = &(_vmsd), \
.size = sizeof(_type *), \
@@ -516,10 +506,7 @@ extern const VMStateInfo vmstate_info_bitmap;
VMSTATE_STRUCT_TEST(_field, _state, NULL, _version, _vmsd, _type)
#define VMSTATE_STRUCT_POINTER(_field, _state, _vmsd, _type) \
- VMSTATE_STRUCT_POINTER_V(_field, _state, 0, _vmsd, _type)
-
-#define VMSTATE_STRUCT_POINTER_TEST(_field, _state, _test, _vmsd, _type) \
- VMSTATE_STRUCT_POINTER_TEST_V(_field, _state, _test, 0, _vmsd, _type)
+ VMSTATE_STRUCT_POINTER_TEST(_field, _state, NULL, _vmsd, _type)
#define VMSTATE_STRUCT_ARRAY(_field, _state, _num, _version, _vmsd, _type) \
VMSTATE_STRUCT_ARRAY_TEST(_field, _state, _num, NULL, _version, \
--
1.9.0
- [Qemu-devel] [PATCH 40/97] vmstate: Test for VMSTATE_UINT8_2DARRAY, (continued)
- [Qemu-devel] [PATCH 40/97] vmstate: Test for VMSTATE_UINT8_2DARRAY, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 36/97] vmstate: Test for VMSTATE_INT16_ARRAY, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 39/97] vmstate: Test for VMSTATE_FLOAT64_ARRAY, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 38/97] vmstate: Test for VMSTATE_INT64_ARRAY, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 41/97] vmstate: Test for VMSTATE_UINT16_2DARRAY., Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 42/97] vmstate: Test for VMSTATE_UINT32_2DARRAY, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 44/97] vmstate: Remove version from VMSTATE_BUFFER_UNSAFE, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 43/97] vmstate: Remove unused VMSTATE_BUFFER_V, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 46/97] vmstate: All ptimers users were at least at version 1 or more, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 45/97] vmstate: Remove unused version fields from ARM, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 47/97] vmstate: remove version from all variants of VMSTATE_STRUCT_POINTER*,
Juan Quintela <=
- [Qemu-devel] [PATCH 48/97] vmstate: Port last 3 users of VMSTATE_ARRAY to VMSTATE_ARRAY_TEST, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 49/97] vmstate: Port last user of VMSTATE_SINGLE to VMSTATE_SINGLE_TEST, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 50/97] vmstate: Remove unused VMSTATE_POINTER, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 51/97] vmstate: Rename VMSTATE_SINGLE_TEST to VMSTATE_SINGLE, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 52/97] vmstate: Move VMSTATE_2DARRAY to use _test, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 53/97] vmstate: Rename VMSTATE_POINTER_TEST without _TEST, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 54/97] vmstate: Rename VMSTATE_ARRAY_TEST to VMSTATE_ARRAY, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 55/97] vmstate: Remove version_id from VMSTATE_VBUFFER, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 56/97] vmstate: Remove version_id fields that were not used, Juan Quintela, 2014/04/06
- [Qemu-devel] [PATCH 57/97] vmstate: Remove version_id from VMSTATE_SUB_ARRAY, Juan Quintela, 2014/04/06