[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/9] hw/remote: Add missing include
|
From: |
Philippe Mathieu-Daudé |
|
Subject: |
[PATCH v2 2/9] hw/remote: Add missing include |
|
Date: |
Mon, 7 Feb 2022 09:27:49 +0100 |
Currently "qemu/error-report.h" is implicitly included, however
if headers in include/ get refactored, we get:
hw/remote/proxy-memory-listener.c: In function ‘proxy_memory_listener_commit’:
hw/remote/proxy-memory-listener.c:183:9: error: implicit declaration of
function ‘error_report’; did you mean ‘error_report_err’?
[-Werror=implicit-function-declaration]
183 | error_report("Number of fds is more than %d", REMOTE_MAX_FDS);
| ^~~~~~~~~~~~
| error_report_err
Add the missing "qemu/error-report.h" header to avoid that.
Reviewed-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/remote/proxy-memory-listener.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/remote/proxy-memory-listener.c
b/hw/remote/proxy-memory-listener.c
index 882c9b4854..0e893f3189 100644
--- a/hw/remote/proxy-memory-listener.c
+++ b/hw/remote/proxy-memory-listener.c
@@ -16,6 +16,7 @@
#include "exec/cpu-common.h"
#include "exec/ram_addr.h"
#include "qapi/error.h"
+#include "qemu/error-report.h"
#include "hw/remote/mpqemu-link.h"
#include "hw/remote/proxy-memory-listener.h"
--
2.34.1
- [PATCH v2 0/9] exec: Remove 'qemu/log.h' from 'exec-all.h', Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 2/9] hw/remote: Add missing include,
Philippe Mathieu-Daudé <=
- [PATCH v2 4/9] qtest: Add missing 'hw/qdev-core.h' include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 3/9] hw/acpi/memory_hotplug: Remove unused 'hw/acpi/pc-hotplug.h' header, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 1/9] hw/tpm: Clean includes, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 5/9] exec/ramblock: Add missing includes, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 6/9] core/ptimers: Remove unnecessary 'sysemu/cpus.h' include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 9/9] exec/exec-all: Move 'qemu/log.h' include in units requiring it, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 7/9] target: Add missing "qemu/timer.h" include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v2 8/9] linux-user: Add missing "qemu/timer.h" include, Philippe Mathieu-Daudé, 2022/02/07
- Re: [PATCH v2 0/9] exec: Remove 'qemu/log.h' from 'exec-all.h', Thomas Huth, 2022/02/21