[PATCH v2 1/3] dump/dump: Include missing 'exec/memory.h' header

Philippe Mathieu-Daudé posted 3 patches 5 months ago
[PATCH v2 1/3] dump/dump: Include missing 'exec/memory.h' header
Posted by Philippe Mathieu-Daudé 5 months ago
dump.c calls address_space_read() which is declared
in "exec/memory.h". Include it explicitly to avoid
when refactoring unrelated headers:

  dump/dump.c:1892:13: error: call to undeclared function 'address_space_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   1892 |             address_space_read(&address_space_memory, addr,
        |             ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 dump/dump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dump/dump.c b/dump/dump.c
index 45e84428aea..58c57d4e4f5 100644
--- a/dump/dump.c
+++ b/dump/dump.c
@@ -15,6 +15,7 @@
 #include "qemu/cutils.h"
 #include "elf.h"
 #include "qemu/bswap.h"
+#include "exec/memory.h"
 #include "exec/target_page.h"
 #include "monitor/monitor.h"
 #include "sysemu/dump.h"
-- 
2.45.2