Received: from eggs.gnu.org ([2001:4830:134:3::10]:51740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WX09m-0007W6-3Z for qemu-devel@nongnu.org; Sun, 06 Apr 2014 23:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WX09f-00005g-SA for qemu-devel@nongnu.org; Sun, 06 Apr 2014 23:23:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WX09f-00005V-Iw for qemu-devel@nongnu.org; Sun, 06 Apr 2014 23:23:27 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s373NQcu006022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 6 Apr 2014 23:23:27 -0400 From: Juan Quintela Date: Mon, 7 Apr 2014 05:21:22 +0200 Message-Id: <1396840915-10384-65-git-send-email-quintela@redhat.com> In-Reply-To: <1396840915-10384-1-git-send-email-quintela@redhat.com> References: <1396840915-10384-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 64/97] vmstate: Remove VMSTATE_BUFFER_MULTIPLY List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org It was unused. Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 13 ------------- vmstate.c | 3 --- 2 files changed, 16 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index ed70734..b9d5a28 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -97,7 +97,6 @@ enum VMStateFlags { VMS_ARRAY_OF_POINTER = 0x040, VMS_VARRAY_UINT16 = 0x080, /* Array with size in uint16_t field */ VMS_VBUFFER = 0x100, /* Buffer with size in int32_t field */ - VMS_MULTIPLY = 0x200, /* multiply "size" field by field_size */ VMS_VARRAY_UINT8 = 0x400, /* Array with size in uint8_t field*/ VMS_VARRAY_UINT32 = 0x800, /* Array with size in uint32_t field*/ }; @@ -392,18 +391,6 @@ extern const VMStateInfo vmstate_info_bitmap; .offset = vmstate_offset_buffer(_state, _field) + _start, \ } -#define VMSTATE_VBUFFER_MULTIPLY(_field, _state, _version, _test, _start, _field_size, _multiply) { \ - .name = (stringify(_field)), \ - .version_id = (_version), \ - .field_exists = (_test), \ - .size_offset = vmstate_offset_value(_state, _field_size, uint32_t),\ - .size = (_multiply), \ - .info = &vmstate_info_buffer, \ - .flags = VMS_VBUFFER|VMS_POINTER|VMS_MULTIPLY, \ - .offset = offsetof(_state, _field), \ - .start = (_start), \ -} - #define VMSTATE_VBUFFER(_field, _state, _test, _start, _field_size) { \ .name = (stringify(_field)), \ .field_exists = (_test), \ diff --git a/vmstate.c b/vmstate.c index cb0af5e..ce197d2 100644 --- a/vmstate.c +++ b/vmstate.c @@ -35,9 +35,6 @@ static int vmstate_size(void *opaque, VMStateField *field) if (field->flags & VMS_VBUFFER) { size = *(int32_t *)(opaque+field->size_offset); - if (field->flags & VMS_MULTIPLY) { - size *= field->size; - } } return size; -- 1.9.0