[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/12] coroutine: Use Coroutine typedef name instead of structure
From: |
Markus Armbruster |
Subject: |
[PULL 05/12] coroutine: Use Coroutine typedef name instead of structure tag |
Date: |
Fri, 20 Jan 2023 08:01:15 +0100 |
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221221131435.3851212-6-armbru@redhat.com>
---
include/block/aio.h | 7 +++----
util/async.c | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/include/block/aio.h b/include/block/aio.h
index 3a546e7515..8fba6a3584 100644
--- a/include/block/aio.h
+++ b/include/block/aio.h
@@ -52,7 +52,6 @@ typedef void QEMUBHFunc(void *opaque);
typedef bool AioPollFn(void *opaque);
typedef void IOHandler(void *opaque);
-struct Coroutine;
struct ThreadPool;
struct LinuxAioState;
struct LuringState;
@@ -694,7 +693,7 @@ static inline bool aio_node_check(AioContext *ctx, bool
is_external)
* is the context in which the coroutine is running (i.e. the value of
* qemu_get_current_aio_context() from the coroutine itself).
*/
-void aio_co_schedule(AioContext *ctx, struct Coroutine *co);
+void aio_co_schedule(AioContext *ctx, Coroutine *co);
/**
* aio_co_reschedule_self:
@@ -717,7 +716,7 @@ void coroutine_fn aio_co_reschedule_self(AioContext
*new_ctx);
* context. The coroutine must not be entered by anyone else while
* aio_co_wake() is active.
*/
-void aio_co_wake(struct Coroutine *co);
+void aio_co_wake(Coroutine *co);
/**
* aio_co_enter:
@@ -726,7 +725,7 @@ void aio_co_wake(struct Coroutine *co);
*
* Enter a coroutine in the specified AioContext.
*/
-void aio_co_enter(AioContext *ctx, struct Coroutine *co);
+void aio_co_enter(AioContext *ctx, Coroutine *co);
/**
* Return the AioContext whose event loop runs in the current thread.
diff --git a/util/async.c b/util/async.c
index 14d63b3091..0657b75397 100644
--- a/util/async.c
+++ b/util/async.c
@@ -640,7 +640,7 @@ void coroutine_fn aio_co_reschedule_self(AioContext
*new_ctx)
}
}
-void aio_co_wake(struct Coroutine *co)
+void aio_co_wake(Coroutine *co)
{
AioContext *ctx;
@@ -653,7 +653,7 @@ void aio_co_wake(struct Coroutine *co)
aio_co_enter(ctx, co);
}
-void aio_co_enter(AioContext *ctx, struct Coroutine *co)
+void aio_co_enter(AioContext *ctx, Coroutine *co)
{
if (ctx != qemu_get_current_aio_context()) {
aio_co_schedule(ctx, co);
--
2.39.0
- [PULL 00/12] Header cleanup patches for 2023-01-20, Markus Armbruster, 2023/01/20
- [PULL 08/12] include/hw/block: Include hw/block/block.h where needed, Markus Armbruster, 2023/01/20
- [PULL 03/12] coroutine: Clean up superfluous inclusion of qemu/lockable.h, Markus Armbruster, 2023/01/20
- [PULL 01/12] coroutine: Clean up superfluous inclusion of qemu/coroutine.h, Markus Armbruster, 2023/01/20
- [PULL 10/12] include/hw/ppc: Supply a few missing includes, Markus Armbruster, 2023/01/20
- [PULL 02/12] coroutine: Move coroutine_fn to qemu/osdep.h, trim includes, Markus Armbruster, 2023/01/20
- [PULL 12/12] include/hw/ppc include/hw/pci-host: Drop extra typedefs, Markus Armbruster, 2023/01/20
- [PULL 05/12] coroutine: Use Coroutine typedef name instead of structure tag,
Markus Armbruster <=
- [PULL 06/12] include/block: Untangle inclusion loops, Markus Armbruster, 2023/01/20
- [PULL 09/12] include/hw/ppc: Split pnv_chip.h off pnv.h, Markus Armbruster, 2023/01/20
- [PULL 04/12] coroutine: Split qemu/coroutine-core.h off qemu/coroutine.h, Markus Armbruster, 2023/01/20
- [PULL 11/12] include/hw/ppc: Don't include hw/pci-host/pnv_phb.h from pnv.h, Markus Armbruster, 2023/01/20
- [PULL 07/12] hw/sparc64/niagara: Use blk_name() instead of open-coding it, Markus Armbruster, 2023/01/20
- Re: [PULL 00/12] Header cleanup patches for 2023-01-20, Peter Maydell, 2023/01/20