[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/4] exec/ram_addr: Include missing 'exec/hwaddr.h' and 'exec/cpu
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 3/4] exec/ram_addr: Include missing 'exec/hwaddr.h' and 'exec/cpu-common.h' |
Date: |
Wed, 18 Dec 2024 16:52:01 +0100 |
'hwaddr' is defined in "exec/hwaddr.h", 'ram_addr_t' in
"exec/cpu-common.h". Include these headers in order to
avoid when refactoring unrelated headers:
In file included from ../../hw/s390x/s390-virtio-ccw.c:17:
include/sysemu/physmem-target.h:37:24: error: unknown type name 'hwaddr'
37 | (MemoryRegion *mr, hwaddr offset, hwaddr length, unsigned client);
| ^
In file included from ../../hw/s390x/s390-virtio-ccw.c:16:
include/exec/ram_addr.h:52:36: error: unknown type name 'ram_addr_t'
52 | RAMBlock *qemu_ram_alloc_from_file(ram_addr_t size, MemoryRegion *mr,
| ^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/exec/ram_addr.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h
index 53785cdb87c..ff157c1f42a 100644
--- a/include/exec/ram_addr.h
+++ b/include/exec/ram_addr.h
@@ -28,6 +28,9 @@
#include "exec/exec-all.h"
#include "qemu/rcu.h"
+#include "exec/hwaddr.h"
+#include "exec/cpu-common.h"
+
extern uint64_t total_dirty_pages;
/**
--
2.45.2
- [PATCH 0/4] include: Header cleanups around "cpu.h", Philippe Mathieu-Daudé, 2024/12/18
- [PATCH 1/4] target/ppc: Include missing headers in mmu-hash[32,64].h, Philippe Mathieu-Daudé, 2024/12/18
- [PATCH 3/4] exec/ram_addr: Include missing 'exec/hwaddr.h' and 'exec/cpu-common.h',
Philippe Mathieu-Daudé <=
- [PATCH 2/4] tcg/tci: Include missing 'disas/dis-asm.h' header, Philippe Mathieu-Daudé, 2024/12/18
- [PATCH 4/4] exec/cpu-all: Include 'cpu.h' earlier so MMU_USER_IDX is always defined, Philippe Mathieu-Daudé, 2024/12/18
- Re: [PATCH 0/4] include: Header cleanups around "cpu.h", Richard Henderson, 2024/12/18