[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] add declaration for kqemu_cpu_interrupt to block-ra
From: |
Carlo Marcelo Arenas Belon |
Subject: |
[Qemu-devel] [PATCH] add declaration for kqemu_cpu_interrupt to block-raw.c |
Date: |
Sun, 11 Nov 2007 02:33:38 -0600 |
User-agent: |
Mutt/1.4.1i |
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
diff -u -r1.26 block-raw.c
--- block-raw.c 11 Nov 2007 02:51:16 -0000 1.26
+++ block-raw.c 11 Nov 2007 08:10:05 -0000
@@ -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
- [Qemu-devel] [PATCH] add declaration for kqemu_cpu_interrupt to block-raw.c,
Carlo Marcelo Arenas Belon <=