"system/memory.h" header is indirectly pulled by "hw/sysbus.h".
Include it explicitly to avoid when refactoring the latter:
hw/misc/empty_slot.c:26:18: error: field has incomplete type 'MemoryRegion'
(aka 'struct MemoryRegion')
26 | MemoryRegion iomem;
| ^
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
hw/misc/empty_slot.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/misc/empty_slot.c b/hw/misc/empty_slot.c
index 239d7603207..1cc3bcd9050 100644
--- a/hw/misc/empty_slot.c
+++ b/hw/misc/empty_slot.c
@@ -16,6 +16,7 @@
#include "qapi/error.h"
#include "trace.h"
#include "qom/object.h"
+#include "system/memory.h"
#define TYPE_EMPTY_SLOT "empty_slot"
OBJECT_DECLARE_SIMPLE_TYPE(EmptySlot, EMPTY_SLOT)
--
2.51.0