Message ID | 20220415131900.793161-11-pbonzini@redhat.com |
---|---|
State | New |
Headers | show |
Series | block: fix coroutine_fn annotations | expand |
On Fri, Apr 15, 2022 at 03:18:44PM +0200, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> > --- > block/nbd.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) As elsewhere in this series, a non-empty commit body would be useful. Reviewed-by: Eric Blake <eblake@redhat.com> > > diff --git a/block/nbd.c b/block/nbd.c > index 5af4deac3f..a4c8d661ad 100644 > --- a/block/nbd.c > +++ b/block/nbd.c > @@ -974,11 +974,11 @@ static void nbd_iter_request_error(NBDReplyChunkIter *iter, int ret) > * nbd_reply_chunk_iter_receive > * The pointer stored in @payload requires g_free() to free it. > */ > -static bool nbd_reply_chunk_iter_receive(BDRVNBDState *s, > - NBDReplyChunkIter *iter, > - uint64_t handle, > - QEMUIOVector *qiov, NBDReply *reply, > - void **payload) > +static bool coroutine_fn nbd_reply_chunk_iter_receive(BDRVNBDState *s, > + NBDReplyChunkIter *iter, > + uint64_t handle, > + QEMUIOVector *qiov, NBDReply *reply, Perhaps worth rewrapping this line. > + void **payload) > { > int ret, request_ret; > NBDReply local_reply; > -- > 2.35.1 > > >
diff --git a/block/nbd.c b/block/nbd.c index 5af4deac3f..a4c8d661ad 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -974,11 +974,11 @@ static void nbd_iter_request_error(NBDReplyChunkIter *iter, int ret) * nbd_reply_chunk_iter_receive * The pointer stored in @payload requires g_free() to free it. */ -static bool nbd_reply_chunk_iter_receive(BDRVNBDState *s, - NBDReplyChunkIter *iter, - uint64_t handle, - QEMUIOVector *qiov, NBDReply *reply, - void **payload) +static bool coroutine_fn nbd_reply_chunk_iter_receive(BDRVNBDState *s, + NBDReplyChunkIter *iter, + uint64_t handle, + QEMUIOVector *qiov, NBDReply *reply, + void **payload) { int ret, request_ret; NBDReply local_reply;
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- block/nbd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)