Skip to contentSkip to conversation

kvm-userland vl.c compiler warning

PATCH In review Jes Sorensen 2 participants 2 messages Mar 26, 2009 – Mar 29, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-userland vl.c compiler warning

Hi,

A minor cosmetic fix to tell the compiler to shut up by including the header providing the prototype for dma_helper_init().

Cheers,
Jes

vl.c needs to include dma.h which provides the prototype for dma_helper_init() to avoid a compiler warning.

---
 qemu/vl.c |    1 +
 1 file changed, 1 insertion(+)
qemu/vl.c +1 -0
Index: kvm-userspace.git/qemu/vl.c
===================================================================
@@ -154,6 +154,7 @@
 #include "kvm.h"
 #include "balloon.h"
 #include "qemu-kvm.h"
+#include "dma.h"
 #include "hw/device-assignment.h"
 
 #include "disas.h"
#1 lore raw
Quoted 4 lines · Jes Sorensen

Hi,

A minor cosmetic fix to tell the compiler to shut up by including the header providing the prototype for dma_helper_init().

I already got this via qemu-svn.

Signature · 1 line
error compiling committee.c: too many arguments to function