From: Philippe Mathieu-Daudé Date: Fri, 9 Feb 2024 15:00:38 +0000 (+0100) Subject: monitor/target: Include missing 'exec/memory.h' header X-Git-Tag: qemu-xen-4.20.0~300^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f6e33708bbb824d493863bc936d3c86fc86f2004;p=qemu-xen.git monitor/target: Include missing 'exec/memory.h' header Include "exec/memory.h" in order to avoid: monitor/hmp-cmds-target.c:263:10: error: call to undeclared function 'memory_region_is_ram'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!memory_region_is_ram(mrs.mr) && !memory_region_is_romd(mrs.mr)) { ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed-by: Michael Tokarev Signed-off-by: Michael Tokarev --- diff --git a/monitor/hmp-cmds-target.c b/monitor/hmp-cmds-target.c index d9fbcac08d..9338ae8440 100644 --- a/monitor/hmp-cmds-target.c +++ b/monitor/hmp-cmds-target.c @@ -25,6 +25,7 @@ #include "qemu/osdep.h" #include "disas/disas.h" #include "exec/address-spaces.h" +#include "exec/memory.h" #include "monitor/hmp-target.h" #include "monitor/monitor-internal.h" #include "qapi/error.h"