qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Philippe Mathieu-Daudé
Subject: [PATCH v2 1/3] dump/dump: Include missing 'exec/memory.h' header
Date: Tue, 10 Dec 2024 15:01:10 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]