diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-12 15:10:10 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-01-18 10:43:14 +0100 |
commit | 3cbc17ee92479ff56d0d6afecc0def6f7ec01153 (patch) | |
tree | 10d6c81f6a79473178de1a14a7df87a800d49205 /block/io_uring.c | |
parent | aef158b093b9d67381f88468d39ac8dd62ae9e8b (diff) |
io_uring: move LuringState typedef to block/aio.h
The LuringState typedef is defined twice, in include/block/raw-aio.h and
block/io_uring.c. Move it in include/block/aio.h, which is included
everywhere the typedef is needed, since include/block/aio.h already has
to define the forward reference to the struct.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/io_uring.c')
-rw-r--r-- | block/io_uring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/io_uring.c b/block/io_uring.c index 7cdd00e9f1..1e5886c30b 100644 --- a/block/io_uring.c +++ b/block/io_uring.c @@ -49,7 +49,7 @@ typedef struct LuringQueue { QSIMPLEQ_HEAD(, LuringAIOCB) submit_queue; } LuringQueue; -typedef struct LuringState { +struct LuringState { AioContext *aio_context; struct io_uring ring; @@ -58,7 +58,7 @@ typedef struct LuringState { LuringQueue io_q; QEMUBH *completion_bh; -} LuringState; +}; /** * luring_resubmit: |