ssh: add missing coroutine_fn annotation

ssh_write is only called from ssh_co_writev.

Signed-off-by: Alberto Faria <afaria@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20221013123711.620631-5-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Alberto Faria 2022-10-13 14:36:51 +02:00 committed by Kevin Wolf
parent 6894ee2bee
commit 42f6ad79e3

View File

@ -1129,9 +1129,9 @@ static coroutine_fn int ssh_co_readv(BlockDriverState *bs,
return ret; return ret;
} }
static int ssh_write(BDRVSSHState *s, BlockDriverState *bs, static coroutine_fn int ssh_write(BDRVSSHState *s, BlockDriverState *bs,
int64_t offset, size_t size, int64_t offset, size_t size,
QEMUIOVector *qiov) QEMUIOVector *qiov)
{ {
ssize_t r; ssize_t r;
size_t written; size_t written;