fix warning in vl.c
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'
Signed-off-by Christoph Hellwig <[email protected]>
vl.c +1 -0
@@ -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"
Blue Swirl
AppliedQuoted 8 lines · Christoph Hellwig
vl.ccallsdma_helper_init, so it needs to includedma.hto 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 <[email protected]>
Thanks, applied.