From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnD3E-0005Y2-D3 for qemu-devel@nongnu.org; Wed, 21 May 2014 16:23:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnD38-00058g-9N for qemu-devel@nongnu.org; Wed, 21 May 2014 16:23:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnD38-00058Y-0n for qemu-devel@nongnu.org; Wed, 21 May 2014 16:23:42 -0400 From: Stefan Hajnoczi Date: Wed, 21 May 2014 22:22:50 +0200 Message-Id: <1400703772-3324-6-git-send-email-stefanha@redhat.com> In-Reply-To: <1400703772-3324-1-git-send-email-stefanha@redhat.com> References: <1400703772-3324-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 5/7] virtio-blk: drop virtio_blk_set_conf() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Crosthwaite , Andreas Faerber , Stefan Hajnoczi , Frederic Konrad This function is no longer used since parent objects now use child aliases to set the VirtIOBlkConf directly. Signed-off-by: Stefan Hajnoczi --- hw/block/virtio-blk.c | 6 ------ include/hw/virtio/virtio-blk.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 52cd3c9..469e2b4 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -642,12 +642,6 @@ static const BlockDevOps virtio_block_ops = { .resize_cb = virtio_blk_resize, }; -void virtio_blk_set_conf(DeviceState *dev, VirtIOBlkConf *blk) -{ - VirtIOBlock *s = VIRTIO_BLK(dev); - memcpy(&(s->blk), blk, sizeof(struct VirtIOBlkConf)); -} - #ifdef CONFIG_VIRTIO_BLK_DATA_PLANE /* Disable dataplane thread during live migration since it does not * update the dirty memory bitmap yet. diff --git a/include/hw/virtio/virtio-blk.h b/include/hw/virtio/virtio-blk.h index bea540c..794801c 100644 --- a/include/hw/virtio/virtio-blk.h +++ b/include/hw/virtio/virtio-blk.h @@ -159,8 +159,6 @@ typedef struct VirtIOBlock { DEFINE_PROP_BIT("config-wce", _state, _field.config_wce, 0, true), \ DEFINE_PROP_IOTHREAD("x-iothread", _state, _field.iothread) -void virtio_blk_set_conf(DeviceState *dev, VirtIOBlkConf *blk); - void virtio_blk_add_child_aliases(Object *obj, VirtIOBlock *s); #endif -- 1.9.0