Received: from eggs.gnu.org ([2001:4830:134:3::10]:59809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNhWl-00063z-Gz for qemu-devel@nongnu.org; Tue, 17 Feb 2015 07:45:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNhWh-0008UN-D7 for qemu-devel@nongnu.org; Tue, 17 Feb 2015 07:45:23 -0500 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:49626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNhWh-0008Ty-6v for qemu-devel@nongnu.org; Tue, 17 Feb 2015 07:45:19 -0500 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Feb 2015 12:45:16 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 5B4352190083 for ; Tue, 17 Feb 2015 12:45:08 +0000 (GMT) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1HCiTXk28180636 for ; Tue, 17 Feb 2015 12:44:29 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1HCiSI6009540 for ; Tue, 17 Feb 2015 05:44:28 -0700 Date: Tue, 17 Feb 2015 13:44:26 +0100 From: Thomas Huth Message-ID: <20150217134426.68b8db3e@oc7435384737.ibm.com> In-Reply-To: <1424122283-12521-4-git-send-email-mst@redhat.com> References: <1424122283-12521-1-git-send-email-mst@redhat.com> <1424122283-12521-4-git-send-email-mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 03/17] virtio: use standard virtio_ring.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Peter Maydell , qemu-devel@nongnu.org, Alexander Graf , Stefan Hajnoczi , Cornelia Huck , "Chen, Tiejun" On Mon, 16 Feb 2015 22:35:40 +0100 "Michael S. Tsirkin" wrote: > Switch to virtio_ring.h from standard headers. > > Signed-off-by: Michael S. Tsirkin > --- > include/hw/virtio/dataplane/vring.h | 2 +- > include/hw/virtio/virtio_ring.h | 167 ------------------------------------ > hw/net/vhost_net.c | 2 +- > 3 files changed, 2 insertions(+), 169 deletions(-) > delete mode 100644 include/hw/virtio/virtio_ring.h > > diff --git a/include/hw/virtio/dataplane/vring.h b/include/hw/virtio/dataplane/vring.h > index d3e086a..836d26a 100644 > --- a/include/hw/virtio/dataplane/vring.h > +++ b/include/hw/virtio/dataplane/vring.h > @@ -18,7 +18,7 @@ > #define VRING_H > > #include "qemu-common.h" > -#include "hw/virtio/virtio_ring.h" > +#include "standard-headers/linux/virtio_ring.h" > #include "hw/virtio/virtio.h" > > typedef struct { > diff --git a/include/hw/virtio/virtio_ring.h b/include/hw/virtio/virtio_ring.h > deleted file mode 100644 > index 0b42e6e..0000000 > --- a/include/hw/virtio/virtio_ring.h > +++ /dev/null > @@ -1,167 +0,0 @@ > -#ifndef _LINUX_VIRTIO_RING_H > -#define _LINUX_VIRTIO_RING_H > -/* > - * This file is copied from /usr/include/linux while converting __uNN types > - * to uXX_t, __inline__ to inline, and tab to spaces. > - * */ Hmmm, in the old header, the "__inline__" was replaced with "inline" ... in the new header from patch 2, there's now "__inline__" again. Was there a good reason for this replacement? If yes, your update-linux-headers.sh patch should maybe replace the "__inline__" into "inline", too? Apart from that, the patch looks good to me. Thomas