summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-03-09 10:52:44 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:52:21 -0600
commit2ed4c9d9e2c0c16f8e25611b6c38ed1f431de48f (patch)
tree6d9836cb6ad83c8b244724209864221e6527e7df /include/block
parentbb17ee45134060d87e879a7747a40f7678e0f922 (diff)
downloadhqemu-2ed4c9d9e2c0c16f8e25611b6c38ed1f431de48f.zip
hqemu-2ed4c9d9e2c0c16f8e25611b6c38ed1f431de48f.tar.gz
include/qemu/iov.h: Don't include qemu-common.h
qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." qemu/iov.h includes qemu-common.h for QEMUIOVector stuff. Move all that to qemu/iov.h and drop the ill-advised include. Include qemu/iov.h where the QEMUIOVector stuff is now missing. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 01349ef..47e80bc 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -2,7 +2,7 @@
#define BLOCK_H
#include "block/aio.h"
-#include "qemu-common.h"
+#include "qemu/iov.h"
#include "qemu/option.h"
#include "qemu/coroutine.h"
#include "block/accounting.h"
OpenPOWER on IntegriCloud