diff options
author | Juan Quintela <quintela@redhat.com> | 2009-10-16 13:29:48 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:51 -0500 |
commit | c7bde572058ab22ee166f5040a34bbb2a3c97f7a (patch) | |
tree | faa981f463e867c217861d6a013536cfe31a767d | |
parent | b2e15099761ea483b9b2a1d1019efb79579a8302 (diff) |
vmstate: Unfold VMSTATE_INT32_VARRAY() only use and remove it
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | hw/hw.h | 6 | ||||
-rw-r--r-- | hw/pci.c | 2 |
2 files changed, 1 insertions, 7 deletions
@@ -600,12 +600,6 @@ extern const VMStateDescription vmstate_i2c_slave; #define VMSTATE_INT32_ARRAY(_f, _s, _n) \ VMSTATE_INT32_ARRAY_V(_f, _s, _n, 0) -#define VMSTATE_INT32_VARRAY_V(_f, _s, _f_n, _v) \ - VMSTATE_VARRAY_INT32(_f, _s, _f_n, _v, vmstate_info_int32, int32_t) - -#define VMSTATE_INT32_VARRAY(_f, _s, _f_n) \ - VMSTATE_INT32_VARRAY_V(_f, _s, _f_n, 0) - #define VMSTATE_BUFFER_V(_f, _s, _v) \ VMSTATE_STATIC_BUFFER(_f, _s, _v, NULL, 0, sizeof(typeof_field(_s, _f))) @@ -79,7 +79,7 @@ static const VMStateDescription vmstate_pcibus = { .minimum_version_id_old = 1, .fields = (VMStateField []) { VMSTATE_INT32_EQUAL(nirq, PCIBus), - VMSTATE_INT32_VARRAY(irq_count, PCIBus, nirq), + VMSTATE_VARRAY_INT32(irq_count, PCIBus, nirq, 0, vmstate_info_int32, int32_t), VMSTATE_END_OF_LIST() } }; |