aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-02-07 09:27:52 +0100
committerThomas Huth <thuth@redhat.com>2022-02-21 10:18:06 +0100
commit40d7ca33b9e3221e0b55142916c1b7bba628c6a9 (patch)
tree04414e118b6556ed4947fe3db4123172a635380f /include
parent496bde821a482f631bbedb2e3ce48af4bfd498d1 (diff)
downloadqemu-40d7ca33b9e3221e0b55142916c1b7bba628c6a9.zip
qemu-40d7ca33b9e3221e0b55142916c1b7bba628c6a9.tar.gz
qemu-40d7ca33b9e3221e0b55142916c1b7bba628c6a9.tar.bz2
exec/ramblock: Add missing includes
"exec/ramblock.h" requires "qemu/rcu.h" for the definition of rcu_head, and "exec/ramlist.h" for the definition of RAMBlockNotifier. Add them to avoid when when refactoring include/: include/exec/ramblock.h:26:21: error: field has incomplete type 'struct rcu_head' struct rcu_head rcu; ^ Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220207082756.82600-6-f4bug@amsat.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/exec/ramblock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/exec/ramblock.h b/include/exec/ramblock.h
index 664701b..6cbedf9 100644
--- a/include/exec/ramblock.h
+++ b/include/exec/ramblock.h
@@ -21,6 +21,8 @@
#ifndef CONFIG_USER_ONLY
#include "cpu-common.h"
+#include "qemu/rcu.h"
+#include "exec/ramlist.h"
struct RAMBlock {
struct rcu_head rcu;