[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/4] coroutine: Move coroutine_fn to qemu/osdep.h, trim inclu
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH 2/4] coroutine: Move coroutine_fn to qemu/osdep.h, trim includes |
Date: |
Thu, 8 Dec 2022 10:03:02 -0500 |
On Thu, 8 Dec 2022 at 09:25, Markus Armbruster <armbru@redhat.com> wrote:
>
> block/block-hmp-cmds.h and qemu/co-shared-resource.h use coroutine_fn
> without including qemu/coroutine.h. They compile only if it's already
> included from elsewhere.
>
> I could fix that, but pulling in qemu/coroutine.h and everything it
> includes just for a macro that expands into nothing feels silly.
> Instead, move the macro to qemu/osdep.h.
>
> Inclusions of qemu/coroutine.h just for coroutine_fn become
> superfluous. Drop them.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> include/block/aio_task.h | 2 --
> include/block/block-common.h | 1 -
> include/monitor/hmp.h | 1 -
> include/qemu/coroutine.h | 18 +++++++-----------
> include/qemu/osdep.h | 16 ++++++++++++++++
> 5 files changed, 23 insertions(+), 15 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
- [PATCH 0/4] coroutine: Clean up includes, Markus Armbruster, 2022/12/08
- [PATCH 3/4] coroutine: Clean up superfluous inclusion of qemu/lockable.h, Markus Armbruster, 2022/12/08
- [PATCH 1/4] coroutine: Clean up superfluous inclusion of qemu/coroutine.h, Markus Armbruster, 2022/12/08
- [PATCH 2/4] coroutine: Move coroutine_fn to qemu/osdep.h, trim includes, Markus Armbruster, 2022/12/08
- Re: [PATCH 2/4] coroutine: Move coroutine_fn to qemu/osdep.h, trim includes,
Stefan Hajnoczi <=
- [PATCH 4/4] coroutine: Break inclusion loop, Markus Armbruster, 2022/12/08
- Re: [PATCH 4/4] coroutine: Break inclusion loop, Philippe Mathieu-Daudé, 2022/12/17