[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/15] monitor/target: Include missing 'exec/memory.h' header
From: |
Michael Tokarev |
Subject: |
[PULL 15/15] monitor/target: Include missing 'exec/memory.h' header |
Date: |
Tue, 13 Feb 2024 11:01:51 +0300 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
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é <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
monitor/hmp-cmds-target.c | 1 +
1 file changed, 1 insertion(+)
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"
--
2.39.2
- [PULL 04/15] hw/arm/smmuv3: Consolidate the use of device_class_set_parent_realize(), (continued)
- [PULL 04/15] hw/arm/smmuv3: Consolidate the use of device_class_set_parent_realize(), Michael Tokarev, 2024/02/13
- [PULL 05/15] hw/smbios: Fix OEM strings table option validation, Michael Tokarev, 2024/02/13
- [PULL 06/15] hw/smbios: Fix port connector option validation, Michael Tokarev, 2024/02/13
- [PULL 03/15] hw/intc/s390_flic: Consolidate the use of device_class_set_parent_realize(), Michael Tokarev, 2024/02/13
- [PULL 08/15] MAINTAINERS: Cover qapi/stats.json, Michael Tokarev, 2024/02/13
- [PULL 10/15] iothread: Simplify expression in qemu_in_iothread(), Michael Tokarev, 2024/02/13
- [PULL 12/15] qemu-options.hx: Add zoom-to-fit to option summary for gtk, Michael Tokarev, 2024/02/13
- [PULL 11/15] qemu-options.hx: document that tftp=dir is readonly, Michael Tokarev, 2024/02/13
- [PULL 13/15] system: Move memory_ldst.c.inc to system, Michael Tokarev, 2024/02/13
- [PULL 14/15] cpu-target: Include missing 'exec/memory.h' header, Michael Tokarev, 2024/02/13
- [PULL 15/15] monitor/target: Include missing 'exec/memory.h' header,
Michael Tokarev <=
- Re: [PULL 00/15] Trivial patches for 2024-02-13, Peter Maydell, 2024/02/13