@samitouri / QOSamiQemu / commits / aea4af8c51

migration: fix qemu_get_counted_string annotation

Fixes: 394b9407e4c ("migration: mark mixed functions that can suspend") Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Marc-André Lureau committed Jul 19, 2026 at 23:30 UTC aea4af8c515fbf7be50e2cb94e5fd31307b1b3b4
1 file changed +1 -1
migration/qemu-file.c
+1 -1
@@ -830,7 +830,7 @@ uint64_t qemu_get_be64(QEMUFile *f)
830 * else 0
831 * (Note a 0 length string will return 0 either way)
832 */
833 -size_t coroutine_fn qemu_get_counted_string(QEMUFile *f, char buf[256])
833 +size_t coroutine_mixed_fn qemu_get_counted_string(QEMUFile *f, char buf[256])
834 {
835 size_t len = qemu_get_byte(f);
836 size_t res = qemu_get_buffer(f, (uint8_t *)buf, len);