* [Qemu-devel] [PATCH] fix warning in vl.c
@ 2009-03-24 13:39 Christoph Hellwig
2009-03-28 8:26 ` Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2009-03-24 13:39 UTC (permalink / raw)
To: qemu-devel
vl.c calls dma_helper_init, so it needs to include dma.h to get a
definition for it, otherwise we get compiler warnings like:
/home/hch/work/qemu/vl.c: In function 'main':
/home/hch/work/qemu/vl.c:5518: warning: implicit declaration of function 'dma_helper_init'
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: qemu/vl.c
===================================================================
--- qemu.orig/vl.c 2009-03-24 14:38:09.198978207 +0100
+++ qemu/vl.c 2009-03-24 14:38:20.913852975 +0100
@@ -148,6 +148,7 @@ int main(int argc, char **argv)
#include "qemu-char.h"
#include "cache-utils.h"
#include "block.h"
+#include "dma.h"
#include "audio/audio.h"
#include "migration.h"
#include "kvm.h"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] fix warning in vl.c
2009-03-24 13:39 [Qemu-devel] [PATCH] fix warning in vl.c Christoph Hellwig
@ 2009-03-28 8:26 ` Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2009-03-28 8:26 UTC (permalink / raw)
To: qemu-devel
On 3/24/09, Christoph Hellwig <hch@lst.de> wrote:
> vl.c calls dma_helper_init, so it needs to include dma.h to get a
> definition for it, otherwise we get compiler warnings like:
>
> /home/hch/work/qemu/vl.c: In function 'main':
> /home/hch/work/qemu/vl.c:5518: warning: implicit declaration of function 'dma_helper_init'
>
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
Thanks, applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-28 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 13:39 [Qemu-devel] [PATCH] fix warning in vl.c Christoph Hellwig
2009-03-28 8:26 ` Blue Swirl
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).