Skip to contentSkip to conversation

add declaration for kqemu_cpu_interrupt to block-raw.c

PATCH Applied Carlo Marcelo Arenas Belon 2 participants 2 messages Nov 11, 2007

lore
Share & tools
lore
#0 lore raw

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
diff -u -r1.26 block-raw.c
@@ -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
Applied
#1 lore raw
Quoted 2 lines · Carlo Marcelo Arenas Belon

The following patch includes "exec-all.h" in block-raw.c when QEMU_IMG is not defined to avoid the following implicit declaration :

I applied a slightly different version, thanks.

Paul