add declaration for kqemu_cpu_interrupt to block-raw.c
PATCH 1/1 add declaration for kqemu_cpu_interrupt to block-raw.c
The following patch includes "exec-all.h" in block-raw.c when QEMU_IMG is not defined to avoid the following implicit declaration :
qemu/block-raw.c: In function `aio_signal_handler':
qemu/block-raw.c:253: warning: implicit declaration of function `kqemu_cpu_interrupt'
Carlo
--
Index: block-raw.c
===================================================================
RCS file: /sources/qemu/qemu/block-raw.c,v
retrieving revision 1.26
block-raw.c +5 -3
@@ -57,11 +57,13 @@#include <sys/disk.h> #endif -//#define DEBUG_FLOPPY +#if !defined(QEMU_IMG ) +#include "exec-all.h" +#endif +//#define DEBUG_FLOPPY //#define DEBUG_BLOCK -#if defined(DEBUG_BLOCK ) && !defined(QEMU_IMG ) -#include "exec-all.h" +#if defined(DEBUG_BLOCK ) #define DEBUG_BLOCK_PRINT(formatCstr, args...) do { if (loglevel != 0) \ { fprintf(logfile, formatCstr, ##args); fflush(logfile); } } while (0)#else
Paul Brook
AppliedQuoted 2 lines · Carlo Marcelo Arenas Belon
The following patch includes "
exec-all.h" inblock-raw.cwhenQEMU_IMGis not defined to avoid the following implicit declaration :
I applied a slightly different version, thanks.
Paul