From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Jason Wang <jasowang@redhat.com>
Cc: "Markus Armbruster" <armbru@redhat.com>,
qemu-devel@nongnu.org, mst@redhat.com, imammedo@redhat.com,
ani@anisinha.ca, peter.maydell@linaro.org, laurent@vivier.eu,
Alistair.Francis@wdc.com, bin.meng@windriver.com,
palmer@dabbelt.com, marcel.apfelbaum@gmail.com,
yangxiaojuan@loongson.cn, gaosong@loongson.cn,
richard.henderson@linaro.org, deller@gmx.de,
vikram.garhwal@amd.com, francisco.iglesias@amd.com, clg@kaod.org,
kraxel@redhat.com, marcandre.lureau@redhat.com,
riku.voipio@iki.fi, qemu-arm@nongnu.org, qemu-riscv@nongnu.org,
qemu-ppc@nongnu.org, crwulff@gmail.com, marex@denx.de,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Stefano Garzarella" <sgarzare@redhat.com>
Subject: Re: [PATCH v2 1/4] include/hw/virtio: Break inclusion loop
Date: Fri, 23 Dec 2022 04:31:24 +0100 [thread overview]
Message-ID: <Y6UhDBkMSSoLm9G0@toto> (raw)
In-Reply-To: <CACGkMEs6R45JkYm294ms33yWJheD0oB6Zs3gvC1d7sv+-oHufA@mail.gmail.com>
On Fri, Dec 23, 2022 at 10:58:06AM +0800, Jason Wang wrote:
> On Thu, Dec 22, 2022 at 8:08 PM Markus Armbruster <armbru@redhat.com> wrote:
> >
> > hw/virtio/virtio.h and hw/virtio/vhost.h include each other. The
> > former doesn't actually need the latter, so drop that inclusion to
> > break the loop.
> >
> > Signed-off-by: Markus Armbruster <armbru@redhat.com>
> > Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> > Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
> > Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Edgar E. Iglesias <edgar@zeroasic.com>
>
> Acked-by: Jason Wang <jasowang@redhat.com>
>
> Thanks
>
> > ---
> > include/hw/virtio/virtio.h | 1 -
> > hw/virtio/virtio-qmp.c | 1 +
> > hw/virtio/virtio.c | 1 +
> > 3 files changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
> > index 24561e933a..48ab2117b5 100644
> > --- a/include/hw/virtio/virtio.h
> > +++ b/include/hw/virtio/virtio.h
> > @@ -22,7 +22,6 @@
> > #include "standard-headers/linux/virtio_config.h"
> > #include "standard-headers/linux/virtio_ring.h"
> > #include "qom/object.h"
> > -#include "hw/virtio/vhost.h"
> >
> > /*
> > * A guest should never accept this. It implies negotiation is broken
> > diff --git a/hw/virtio/virtio-qmp.c b/hw/virtio/virtio-qmp.c
> > index 8e7282658f..3d4497da99 100644
> > --- a/hw/virtio/virtio-qmp.c
> > +++ b/hw/virtio/virtio-qmp.c
> > @@ -11,6 +11,7 @@
> >
> > #include "qemu/osdep.h"
> > #include "hw/virtio/virtio.h"
> > +#include "hw/virtio/vhost.h"
> > #include "virtio-qmp.h"
> >
> > #include "standard-headers/linux/virtio_ids.h"
> > diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
> > index 289eb71045..0ec6ff9ae4 100644
> > --- a/hw/virtio/virtio.c
> > +++ b/hw/virtio/virtio.c
> > @@ -25,6 +25,7 @@
> > #include "qom/object_interfaces.h"
> > #include "hw/core/cpu.h"
> > #include "hw/virtio/virtio.h"
> > +#include "hw/virtio/vhost.h"
> > #include "migration/qemu-file-types.h"
> > #include "qemu/atomic.h"
> > #include "hw/virtio/virtio-bus.h"
> > --
> > 2.38.1
> >
>
next prev parent reply other threads:[~2022-12-23 3:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-22 12:08 [PATCH v2 0/4] Clean up includes Markus Armbruster
2022-12-22 12:08 ` [PATCH v2 1/4] include/hw/virtio: Break inclusion loop Markus Armbruster
2022-12-23 2:58 ` Jason Wang
2022-12-23 3:31 ` Edgar E. Iglesias [this message]
2022-12-22 12:08 ` [PATCH v2 2/4] include: Include headers where needed Markus Armbruster
2022-12-22 12:08 ` [PATCH v2 3/4] include: Don't include qemu/osdep.h Markus Armbruster
2023-01-08 6:51 ` Michael S. Tsirkin
2022-12-22 12:08 ` [PATCH v2 4/4] docs/devel: Rules on #include in headers Markus Armbruster
2022-12-23 10:47 ` Bernhard Beschow
2023-01-09 12:01 ` Markus Armbruster
2022-12-23 23:41 ` Alex Bennée
2022-12-22 12:10 ` [PATCH v2 0/4] Clean up includes Markus Armbruster
2023-01-05 1:50 ` Michael S. Tsirkin
2023-01-08 6:49 ` Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y6UhDBkMSSoLm9G0@toto \
--to=edgar.iglesias@gmail.com \
--cc=Alistair.Francis@wdc.com \
--cc=ani@anisinha.ca \
--cc=armbru@redhat.com \
--cc=bin.meng@windriver.com \
--cc=clg@kaod.org \
--cc=crwulff@gmail.com \
--cc=deller@gmx.de \
--cc=francisco.iglesias@amd.com \
--cc=gaosong@loongson.cn \
--cc=imammedo@redhat.com \
--cc=jasowang@redhat.com \
--cc=kraxel@redhat.com \
--cc=laurent@vivier.eu \
--cc=marcandre.lureau@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=marex@denx.de \
--cc=mst@redhat.com \
--cc=palmer@dabbelt.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=riku.voipio@iki.fi \
--cc=sgarzare@redhat.com \
--cc=vikram.garhwal@amd.com \
--cc=yangxiaojuan@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.