"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/scsi/esp.c:31:
include/hw/scsi/esp.h:82:18: error: field has incomplete type 'MemoryRegion'
(aka 'struct MemoryRegion')
82 | MemoryRegion iomem;
| ^
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
include/hw/scsi/esp.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h
index 3526bad7464..340a713831e 100644
--- a/include/hw/scsi/esp.h
+++ b/include/hw/scsi/esp.h
@@ -1,6 +1,7 @@
#ifndef QEMU_HW_ESP_H
#define QEMU_HW_ESP_H
+#include "system/memory.h"
#include "hw/scsi/scsi.h"
#include "hw/sysbus.h"
#include "qemu/fifo8.h"
--
2.51.0