hw/i386/vmport: fix missing definitions with x86_64-w64-mingw32
PATCH 1/1 hw/i386/vmport: fix missing definitions with x86_64-w64-mingw32
When compiled with x86_64-w64-mingw32, we have:
error: implicit declaration of function 'qemu_log_mask'
error: 'LOG_UNIMP' undeclared (first use in this function)
This patch adds the missing include.
("hw/i386/vmport: replace fprintf() by trace events or LOG_UNIMP")
--- hw/i386/vmport.c | 1 + 1 file changed, 1 insertion(+)
hw/i386/vmport.c +1 -0
@@ -27,6 +27,7 @@#include "hw/i386/pc.h" #include "sysemu/hw_accel.h" #include "hw/qdev.h" +#include "qemu/log.h" #include "trace.h" #define VMPORT_CMD_GETVERSION 0x0a
Signature · 1 line
2.14.3
Quoted 10 lines · Laurent Vivier
When compiled with x86_64-w64-mingw32, we have:
error: implicit declaration of function '
qemu_log_mask'
error: 'LOG_UNIMP' undeclared (first use in this function)This patch adds the missing include.
Fixes 7299e1a411("hw/i386/vmport: replace
fprintf()by trace events orLOG_UNIMP")Signed-off-by Laurent Vivier <[email protected]>
Looks to me like it'll be a bug for anything not configured using the 'log' trace backend, rather than win32 specific.
I'll apply (and fix up the commit message).
thanks
-- PMM
Quoted 6 lines
Quoted 3 lines
Fixes 7299e1a411("hw/i386/vmport: replace
fprintf()by trace events orLOG_UNIMP")Signed-off-by Laurent Vivier <[email protected]>Looks to me like it'll be a bug for anything not configured using the 'log' trace backend, rather than win32 specific.
Sorry my bad, it seems I don't test enough lately, I'll try to do more testing, and somehow to reduce CI build time, more they last, less we rely on it, even with personal repositories.
Quoted 10 lines · Philippe Mathieu-Daudé
Quoted 6 lines
Quoted 3 lines
Fixes 7299e1a411("hw/i386/vmport: replace
fprintf()by trace events orLOG_UNIMP")Signed-off-by Laurent Vivier <[email protected]>Looks to me like it'll be a bug for anything not configured using the 'log' trace backend, rather than win32 specific.
Sorry my bad, it seems I don't test enough lately, I'll try to do more testing, and somehow to reduce CI build time, more they last, less we rely on it, even with personal repositories.
It's unfortunate that trace.h pulls in qemu/log.h if you're using the log backend, because it makes this particular mistake easy; we've had quite a few instances of it... (I could probably configure one of my test setups with a different trace backend which would at least catch these before they hit master.)
thanks
-- PMM