diff options
author | Markus Armbruster <armbru@redhat.com> | 2022-12-21 14:14:34 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-01-20 07:21:46 +0100 |
commit | 68ba85cecc7a46ceb66c2f4b5e2165546821d062 (patch) | |
tree | 5205e303878504e212fd351e97c598c9ecd2eaa6 /tests/unit/test-aio.c | |
parent | df4bbc9dcb09d9e3a385ca1a2a23daad0819f531 (diff) |
coroutine: Split qemu/coroutine-core.h off qemu/coroutine.h
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>
Message-Id: <20221221131435.3851212-5-armbru@redhat.com>
[Semantic rebase conflict with 7c10cb38cc "accel/tcg: Add debuginfo
support" resolved]
Diffstat (limited to 'tests/unit/test-aio.c')
-rw-r--r-- | tests/unit/test-aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-aio.c b/tests/unit/test-aio.c index 178048d2f2..321d7ab01a 100644 --- a/tests/unit/test-aio.c +++ b/tests/unit/test-aio.c @@ -16,7 +16,7 @@ #include "qemu/timer.h" #include "qemu/sockets.h" #include "qemu/error-report.h" -#include "qemu/coroutine.h" +#include "qemu/coroutine-core.h" #include "qemu/main-loop.h" static AioContext *ctx; |