[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/9] exec/ramblock: Add missing includes
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 5/9] exec/ramblock: Add missing includes |
Date: |
Mon, 7 Feb 2022 09:27:52 +0100 |
"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;
^
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
include/exec/ramblock.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/exec/ramblock.h b/include/exec/ramblock.h
index 664701b759..6cbedf9e0c 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;
--
2.34.1
- [PATCH v2 0/9] exec: Remove 'qemu/log.h' from 'exec-all.h', Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 2/9] hw/remote: Add missing include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 4/9] qtest: Add missing 'hw/qdev-core.h' include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 3/9] hw/acpi/memory_hotplug: Remove unused 'hw/acpi/pc-hotplug.h' header, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 1/9] hw/tpm: Clean includes, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 5/9] exec/ramblock: Add missing includes,
Philippe Mathieu-Daudé <=
- [PATCH v2 6/9] core/ptimers: Remove unnecessary 'sysemu/cpus.h' include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 9/9] exec/exec-all: Move 'qemu/log.h' include in units requiring it, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 7/9] target: Add missing "qemu/timer.h" include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 8/9] linux-user: Add missing "qemu/timer.h" include, Philippe Mathieu-Daudé, 2022/02/07
- Re: [PATCH v2 0/9] exec: Remove 'qemu/log.h' from 'exec-all.h', Thomas Huth, 2022/02/21