aboutsummaryrefslogtreecommitdiff
path: root/include/monitor/hmp.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2022-12-21 14:14:32 +0100
committerMarkus Armbruster <armbru@redhat.com>2023-01-19 10:18:28 +0100
commitaf7f8eb591b45e9a950f2622b96640ff1f2a6794 (patch)
treec566e4c62e0defa8ad2263d421edf7f81a4cf7ee /include/monitor/hmp.h
parent23792478103f444e34621de0ac3b19ef648ae752 (diff)
downloadqemu-af7f8eb591b45e9a950f2622b96640ff1f2a6794.zip
qemu-af7f8eb591b45e9a950f2622b96640ff1f2a6794.tar.gz
qemu-af7f8eb591b45e9a950f2622b96640ff1f2a6794.tar.bz2
coroutine: Move coroutine_fn to qemu/osdep.h, trim includes
block/block-hmp-cmds.h and qemu/co-shared-resource.h use coroutine_fn without including qemu/coroutine.h. They compile only if it's already included from elsewhere. I could fix that, but pulling in qemu/coroutine.h and everything it includes just for a macro that expands into nothing feels silly. Instead, move the macro to qemu/osdep.h. Inclusions of qemu/coroutine.h just for coroutine_fn become superfluous. Drop them. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20221221131435.3851212-3-armbru@redhat.com>
Diffstat (limited to 'include/monitor/hmp.h')
-rw-r--r--include/monitor/hmp.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h
index 27f8639..c9e3887 100644
--- a/include/monitor/hmp.h
+++ b/include/monitor/hmp.h
@@ -15,7 +15,6 @@
#define HMP_H
#include "qemu/readline.h"
-#include "qemu/coroutine.h"
#include "qapi/qapi-types-common.h"
bool hmp_handle_error(Monitor *mon, Error *err);