From: Philippe Mathieu-Daudé Date: Mon, 19 Jun 2023 07:28:41 +0000 (+0200) Subject: hw/dma/etraxfs: Include missing 'exec/memory.h' header X-Git-Tag: v8.2.0-rc0~146^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56c39a41adadfc567e1ac22089670bfde6b35365;p=thirdparty%2Fqemu.git hw/dma/etraxfs: Include missing 'exec/memory.h' header 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é Reviewed-by: Richard Henderson Message-Id: <20230619074153.44268-3-philmd@linaro.org> --- diff --git a/hw/dma/etraxfs_dma.c b/hw/dma/etraxfs_dma.c index a1068b19ea3..9c0003de51d 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"