From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: stefanha@redhat.com, kwolf@redhat.com, pbonzini@redhat.com
Subject: Re: [PATCH v2 4/5] coroutine: Split qemu/coroutine-core.h off qemu/coroutine.h
Date: Wed, 21 Dec 2022 08:01:31 +0100 [thread overview]
Message-ID: <87bknxkzp0.fsf@pond.sub.org> (raw)
In-Reply-To: <20221220154944.3611845-5-armbru@redhat.com> (Markus Armbruster's message of "Tue, 20 Dec 2022 16:49:43 +0100")
Markus Armbruster <armbru@redhat.com> writes:
> qemu/coroutine.h and qemu/lockable.h include each other.
>
> They need each other only in macro expansions, so we could simply drop
> both inclusions to break the loop, and add suitable includes to files
> that expand the macros.
>
> Instead, move a part of qemu/coroutine.h to new qemu/coroutine-core.h
> so that qemu/coroutine-core.h doesn't need qemu/lockable.h, and
> qemu/lockable.h only needs qemu/coroutine-core.h. Result:
> qemu/coroutine.h includes qemu/lockable.h includes
> qemu/coroutine-core.h.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
[...]
> diff --git a/block.c b/block.c
> index 9c2ac757e4..be78be95f9 100644
> --- a/block.c
> +++ b/block.c
> @@ -44,7 +44,7 @@
> #include "sysemu/block-backend.h"
> #include "qemu/notify.h"
> #include "qemu/option.h"
> -#include "qemu/coroutine.h"
> +#include "qemu/coroutine-core.h"
> #include "block/qapi.h"
> #include "qemu/timer.h"
> #include "qemu/cutils.h"
Err, the include is useless before and after the patch: we get
coroutine.h from headers. I'll drop the hunk to reduce churn.
Same for
block/block-copy.c block/io_uring.c block/linux-aio.c block/mirror.c
block/vdi.c chardev/char.c hw/9pfs/coth.c hw/block/virtio-blk.c
migration/rdma.c net/colo-compare.c qapi/qmp-dispatch.c
util/thread-pool.c
[...]
next prev parent reply other threads:[~2022-12-21 7:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-20 15:49 [PATCH v2 0/5] coroutine: Clean up includes Markus Armbruster
2022-12-20 15:49 ` [PATCH v2 1/5] coroutine: Clean up superfluous inclusion of qemu/coroutine.h Markus Armbruster
2022-12-20 15:49 ` [PATCH v2 2/5] coroutine: Move coroutine_fn to qemu/osdep.h, trim includes Markus Armbruster
2022-12-20 15:49 ` [PATCH v2 3/5] coroutine: Clean up superfluous inclusion of qemu/lockable.h Markus Armbruster
2022-12-20 15:49 ` [PATCH v2 4/5] coroutine: Split qemu/coroutine-core.h off qemu/coroutine.h Markus Armbruster
2022-12-21 7:01 ` Markus Armbruster [this message]
2022-12-20 15:49 ` [PATCH v2 5/5] coroutine: Use Coroutine typedef name instead of structure tag Markus Armbruster
2022-12-20 21:53 ` Philippe Mathieu-Daudé
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=87bknxkzp0.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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.