hw/remote: Add missing include
PATCH 1/1 hw/remote: Add missing include
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_errAdd the missing "qemu/error-report.h" header to avoid that.
--- hw/remote/proxy-memory-listener.c | 1 + 1 file changed, 1 insertion(+)
hw/remote/proxy-memory-listener.c +1 -0
@@ -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"
Signature · 1 line
2.34.1
Quoted 9 lines · Philippe Mathieu-Daudé
Currently "
qemu/error-report.h" is implicitly included, however if headers ininclude/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]
Quoted 7 lines
183 | error_report("Number of fds is more than %d", REMOTE_MAX_FDS); | ^~~~~~~~~~~~ | error_report_errAdd the missing "
qemu/error-report.h" header to avoid that.Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 19 lines
---
hw/remote/proxy-memory-listener.c| 1 +1 file changed, 1 insertion(+)hw/remote/proxy-memory-listener.c +1
-0@@ -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" Signature · 1 line
2.34.1