[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/10] exec/ramblock: Add missing 'qemu/rcu.h' include
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 02/10] exec/ramblock: Add missing 'qemu/rcu.h' include |
Date: |
Thu, 7 May 2020 19:39:50 +0200 |
The first field of RAMBlock is a rcu_head structure.
We need to include the "qemu/rcu.h" to avoid errors when
including "exec/ramblock.h" without "qemu/rcu.h":
include/exec/ramblock.h:27:21: error: field ‘rcu’ has incomplete type
27 | struct rcu_head rcu;
| ^~~
include/exec/ramblock.h:39:5: error: expected specifier-qualifier-list before
‘QLIST_ENTRY’
39 | QLIST_ENTRY(RAMBlock) next;
| ^~~~~~~~~~~
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
include/exec/ramblock.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/exec/ramblock.h b/include/exec/ramblock.h
index 07d50864d8..6ac0aa7a89 100644
--- a/include/exec/ramblock.h
+++ b/include/exec/ramblock.h
@@ -21,6 +21,7 @@
#ifndef CONFIG_USER_ONLY
#include "cpu-common.h"
+#include "qemu/rcu.h"
struct RAMBlock {
struct rcu_head rcu;
--
2.21.3
- [PATCH 00/10] exec: Shear 'exec/ram_addr.h' and make NVMe device target-agnostic, Philippe Mathieu-Daudé, 2020/05/07
- [PATCH 01/10] exec: Rename qemu_ram_writeback() as qemu_ram_msync(), Philippe Mathieu-Daudé, 2020/05/07
- [PATCH 02/10] exec/ramblock: Add missing 'qemu/rcu.h' include,
Philippe Mathieu-Daudé <=
- [PATCH 03/10] exec: Move tb_invalidate_phys_range() to 'exec/exec-all.h', Philippe Mathieu-Daudé, 2020/05/07
- [PATCH 04/10] exec/memory-internal: Check CONFIG_SOFTMMU instead of CONFIG_USER_ONLY, Philippe Mathieu-Daudé, 2020/05/07
- [PATCH 05/10] exec: Move qemu_minrampagesize/qemu_maxrampagesize to 'qemu-common.h', Philippe Mathieu-Daudé, 2020/05/07
- [PATCH 06/10] exec: Move ramblock_recv_bitmap_offset() to migration/ram.c, Philippe Mathieu-Daudé, 2020/05/07