qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] add declaration for kqemu_cpu_interrupt to block-raw.c
@ 2007-11-11  8:33 Carlo Marcelo Arenas Belon
  2007-11-11 11:43 ` Paul Brook
  0 siblings, 1 reply; 2+ messages in thread
From: Carlo Marcelo Arenas Belon @ 2007-11-11  8:33 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] add declaration for kqemu_cpu_interrupt to block-raw.c
  2007-11-11  8:33 [Qemu-devel] [PATCH] add declaration for kqemu_cpu_interrupt to block-raw.c Carlo Marcelo Arenas Belon
@ 2007-11-11 11:43 ` Paul Brook
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Brook @ 2007-11-11 11:43 UTC (permalink / raw)
  To: qemu-devel

On Sunday 11 November 2007, Carlo Marcelo Arenas Belon wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-11 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-11  8:33 [Qemu-devel] [PATCH] add declaration for kqemu_cpu_interrupt to block-raw.c Carlo Marcelo Arenas Belon
2007-11-11 11:43 ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).