"system/memory.h" header is indirectly pulled by "hw/sysbus.h".
Include it explicitly to avoid when refactoring the latter:
include/hw/pci/pci_host.h:42:18: error: field has incomplete type
'MemoryRegion' (aka 'struct MemoryRegion')
42 | MemoryRegion conf_mem;
| ^
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
include/hw/pci/pci_host.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/hw/pci/pci_host.h b/include/hw/pci/pci_host.h
index 954dd446fa4..d06d64f6cad 100644
--- a/include/hw/pci/pci_host.h
+++ b/include/hw/pci/pci_host.h
@@ -29,6 +29,7 @@
#define PCI_HOST_H
#include "hw/sysbus.h"
+#include "system/memory.h"
#include "qom/object.h"
#define PCI_HOST_BYPASS_IOMMU "bypass-iommu"
--
2.51.0