"system/memory.h" header is indirectly pulled by "hw/sysbus.h".
Include it explicitly to avoid when refactoring the latter:
In file included from ../../hw/arm/aspeed_ast10x0.c:17:
include/hw/misc/unimp.h:22:18: error: field has incomplete type
'MemoryRegion' (aka 'struct MemoryRegion')
22 | MemoryRegion iomem;
| ^
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
include/hw/misc/unimp.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/hw/misc/unimp.h b/include/hw/misc/unimp.h
index 518d627dc5d..a0a1f359e1d 100644
--- a/include/hw/misc/unimp.h
+++ b/include/hw/misc/unimp.h
@@ -12,6 +12,7 @@
#include "hw/sysbus.h"
#include "qapi/error.h"
#include "qom/object.h"
+#include "system/memory.h"
#define TYPE_UNIMPLEMENTED_DEVICE "unimplemented-device"
--
2.51.0