From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaPgk-0007Bn-Ud for qemu-devel@nongnu.org; Mon, 19 Nov 2012 06:38:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaPgh-0000Bz-SC for qemu-devel@nongnu.org; Mon, 19 Nov 2012 06:38:54 -0500 Received: from mail-bk0-f45.google.com ([209.85.214.45]:61148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaPgh-0000Bb-LM for qemu-devel@nongnu.org; Mon, 19 Nov 2012 06:38:51 -0500 Received: by mail-bk0-f45.google.com with SMTP id jk13so869550bkc.4 for ; Mon, 19 Nov 2012 03:38:50 -0800 (PST) Date: Mon, 19 Nov 2012 12:38:48 +0100 From: Stefan Hajnoczi Message-ID: <20121119113848.GA22047@stefanha-thinkpad.redhat.com> References: <1352945534-20257-1-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1352945534-20257-1-git-send-email-david@gibson.dropbear.id.au> Subject: Re: [Qemu-devel] [PATCH] virtio-blk: Remove duplicate property definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: kwolf@redhat.com, Anthony Liguori , Paul 'Rusty' Russell , qemu-devel@nongnu.org On Thu, Nov 15, 2012 at 01:12:14PM +1100, David Gibson wrote: > For the virtio-blk device (via virtio-pci) the property "config-wce" is > defined in two places. First, it's defined from the > DEFINE_VIRTIO_BLK_FEATURES macro, second it's defined directly in > virtio-pci, just two lines above the call to that macro. > > The direct definition in virtio-pci.c is broken, since it operates on the > 'config_wce' field of VirtIOBlkConf, which is never used anywhere else. > Therefore, this patch removes both the extra property definition and the > redundant field it works on. > > Cc: Kevin Wolf > Cc: Anthony Liguori > Cc: Paul 'Rusty' Russell > > Signed-off-by: David Gibson > --- > hw/virtio-blk.h | 1 - > hw/virtio-pci.c | 1 - > 2 files changed, 2 deletions(-) Thanks, applied to the block-next tree: https://github.com/stefanha/qemu/commits/block-next Stefan