Received: from eggs.gnu.org ([2001:4830:134:3::10]:35322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO6gF-0001Fd-BA for qemu-devel@nongnu.org; Wed, 18 Feb 2015 10:36:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO6gB-0006xb-83 for qemu-devel@nongnu.org; Wed, 18 Feb 2015 10:36:51 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:47531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO6gA-0006xV-V4 for qemu-devel@nongnu.org; Wed, 18 Feb 2015 10:36:47 -0500 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Feb 2015 15:36:45 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 10F371B08069 for ; Wed, 18 Feb 2015 15:36:55 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1IFagCH3211564 for ; Wed, 18 Feb 2015 15:36:42 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1IFafQM009418 for ; Wed, 18 Feb 2015 08:36:42 -0700 Date: Wed, 18 Feb 2015 16:36:39 +0100 From: Thomas Huth Message-ID: <20150218163639.684cbffd@oc7435384737.ibm.com> In-Reply-To: <20150218145554.GA3913@redhat.com> References: <1424122283-12521-1-git-send-email-mst@redhat.com> <1424122283-12521-12-git-send-email-mst@redhat.com> <20150218153413.390d8d05@oc7435384737.ibm.com> <20150218145554.GA3913@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 11/17] virtio-serial: switch to standard-headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Peter Maydell , Anthony Liguori , qemu-devel@nongnu.org, Alexander Graf , Amit Shah , Stefan Hajnoczi , Cornelia Huck , "Chen, Tiejun" On Wed, 18 Feb 2015 15:55:54 +0100 "Michael S. Tsirkin" wrote: > On Wed, Feb 18, 2015 at 03:34:13PM +0100, Thomas Huth wrote: > > On Mon, 16 Feb 2015 22:36:26 +0100 > > "Michael S. Tsirkin" wrote: ... > > > diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c > > > index 47fbb34..a2bac9b 100644 > > > --- a/hw/char/virtio-serial-bus.c > > > +++ b/hw/char/virtio-serial-bus.c > > > @@ -18,6 +18,7 @@ > > > * GNU GPL, version 2 or (at your option) any later version. > > > */ > > > > > > +#include "standard-headers/linux/virtio_ids.h" > > > > Could you omit this include? Later in virtio-serial-bus.c, the code > > includes hw/virtio/virtio-serial.h, which in turn includes > > standard-headers/linux/virtio_console.h - and that one already includes > > the ids.h file. So I think it should work without the above change, too. > > > > Thomas > > Yes but it's generally not a good idea to depend on headers > including each other. But as far as I can see, you also did not do this change in your other patches of this series, so this seems a little bit inconsequent (e.g. virtio-blk.c depends on VIRTIO_ID_BLOCK, but you did not include the virtio_ids.h header there). Thomas