diff mbox series

[2/4] hw/dma/etraxfs: Include missing 'exec/memory.h' header

Message ID 20230619074153.44268-3-philmd@linaro.org
State Superseded
Headers show
Series exec: Header cleanups around memory.h/address-spaces.h | expand

Commit Message

Philippe Mathieu-Daudé June 19, 2023, 7:41 a.m. UTC
The 'fs_dma_ctrl' structure has a MemoryRegion 'mmio' field
which is initialized in etraxfs_dmac_init() calling
memory_region_init_io() and memory_region_add_subregion().

These functions are declared in "exec/memory.h", along with
the MemoryRegion structure. Include the missing header.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/dma/etraxfs_dma.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Henderson June 19, 2023, 8:05 a.m. UTC | #1
On 6/19/23 09:41, Philippe Mathieu-Daudé wrote:
> The 'fs_dma_ctrl' structure has a MemoryRegion 'mmio' field
> which is initialized in etraxfs_dmac_init() calling
> memory_region_init_io() and memory_region_add_subregion().
> 
> These functions are declared in "exec/memory.h", along with
> the MemoryRegion structure. Include the missing header.
> 
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
>   hw/dma/etraxfs_dma.c | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
diff mbox series

Patch

diff --git a/hw/dma/etraxfs_dma.c b/hw/dma/etraxfs_dma.c
index a1068b19ea..9c0003de51 100644
--- a/hw/dma/etraxfs_dma.c
+++ b/hw/dma/etraxfs_dma.c
@@ -28,6 +28,7 @@ 
 #include "qemu/main-loop.h"
 #include "sysemu/runstate.h"
 #include "exec/address-spaces.h"
+#include "exec/memory.h"
 
 #include "hw/cris/etraxfs_dma.h"