[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 11/17] virtio-serial: switch to standard-head
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PATCH v3 11/17] virtio-serial: switch to standard-headers |
Date: |
Wed, 18 Feb 2015 16:41:08 +0100 |
On Wed, Feb 18, 2015 at 04:36:39PM +0100, Thomas Huth wrote:
> On Wed, 18 Feb 2015 15:55:54 +0100
> "Michael S. Tsirkin" <address@hidden> 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" <address@hidden> 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
OK - I'll do this as a patch on top?
Don't want to repost the whole series.
--
MST
- [Qemu-devel] [PATCH v3 08/17] virtio-net, tap: use standard-headers, (continued)
[Qemu-devel] [PATCH v3 12/17] update-linux-headers: use standard-headers, Michael S. Tsirkin, 2015/02/16
[Qemu-devel] [PATCH v3 13/17] linux-headers: use standard-headers, Michael S. Tsirkin, 2015/02/16
[Qemu-devel] [PATCH v3 14/17] virtio-pci: use standard headers, Michael S. Tsirkin, 2015/02/16
[Qemu-devel] [PATCH v3 15/17] scripts: add arch specific standard-headers, Michael S. Tsirkin, 2015/02/16
[Qemu-devel] [PATCH v3 17/17] s390: use standard headers, Michael S. Tsirkin, 2015/02/16
[Qemu-devel] [PATCH v3 16/17] standard-headers: add s390 virtio headers, Michael S. Tsirkin, 2015/02/16