Skip to contentSkip to conversation

fix warning in vl.c

PATCH Applied Christoph Hellwig 2 participants 2 messages Mar 24, 2009 – Mar 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix warning in vl.c

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'

vl.c +1 -0
Index: qemu/vl.c
===================================================================
@@ -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"
Applied
#1 lore raw
Quoted 8 lines · Christoph Hellwig

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'

Thanks, applied.