diff options
author | Alberto Faria | 2022-10-13 14:36:50 +0200 |
---|---|---|
committer | Kevin Wolf | 2022-10-27 20:14:11 +0200 |
commit | 6894ee2bee20fd22055f8a7337ef465efab0c823 (patch) | |
tree | 90fb506937c69ef48926e05243db5037aa56bec1 /block | |
parent | block: remove incorrect coroutine_fn annotation (diff) | |
download | qemu-6894ee2bee20fd22055f8a7337ef465efab0c823.tar.gz qemu-6894ee2bee20fd22055f8a7337ef465efab0c823.tar.xz qemu-6894ee2bee20fd22055f8a7337ef465efab0c823.zip |
monitor: add missing coroutine_fn annotation
hmp_block_resize and hmp_screendump are defined as a ".coroutine = true" command,
so they must be coroutine_fn.
Signed-off-by: Alberto Faria <afaria@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20221013123711.620631-4-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/monitor/block-hmp-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/monitor/block-hmp-cmds.c b/block/monitor/block-hmp-cmds.c index 939a520d17..b6135e9bfe 100644 --- a/block/monitor/block-hmp-cmds.c +++ b/block/monitor/block-hmp-cmds.c @@ -489,7 +489,7 @@ void hmp_nbd_server_stop(Monitor *mon, const QDict *qdict) hmp_handle_error(mon, err); } -void hmp_block_resize(Monitor *mon, const QDict *qdict) +void coroutine_fn hmp_block_resize(Monitor *mon, const QDict *qdict) { const char *device = qdict_get_str(qdict, "device"); int64_t size = qdict_get_int(qdict, "size"); |