Patchwork virtio-9p: fix compilation error.

login
register
mail settings
Submitter fred.konrad@greensocs.com
Date Jan. 14, 2013, 9:52 p.m.
Message ID <1358200322-9660-1-git-send-email-fred.konrad@greensocs.com>
Download mbox | patch
Permalink /patch/211934/
State New
Headers show

Comments

fred.konrad@greensocs.com - Jan. 14, 2013, 9:52 p.m.
From: KONRAD Frederic <fred.konrad@greensocs.com>

Fix the compilation error introduced by msg new field.

CC    hw/9pfs/virtio-9p.o
In file included from /home/konradf/Documents/safe/greensocs/virtio-project/x86-qemu/qemu/hw/9pfs/virtio-9p.c:17:0:
/home/konradf/Documents/safe/greensocs/virtio-project/x86-qemu/qemu/hw/virtio-pci.h:30:16: erreur: field ‘msg’ has incomplete type
make: *** [hw/9pfs/virtio-9p.o] Erreur 1

Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
---
 hw/virtio-pci.h | 1 +
 1 file changed, 1 insertion(+)
Anthony Liguori - Jan. 15, 2013, 1:44 a.m.
Thanks, applied.

Regards,

Anthony Liguori
Michael S. Tsirkin - Jan. 15, 2013, 6:56 a.m.
On Tue, Jan 15, 2013 at 01:44:32AM -0000, Anthony Liguori wrote:
> Thanks, applied.
> 
> Regards,
> 
> Anthony Liguori

OK so one must have libcap-devel and libattr-devel
on a development box too.

Patch

diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
index 9ff3139..917b465 100644
--- a/hw/virtio-pci.h
+++ b/hw/virtio-pci.h
@@ -15,6 +15,7 @@ 
 #ifndef QEMU_VIRTIO_PCI_H
 #define QEMU_VIRTIO_PCI_H
 
+#include "hw/pci/msi.h"
 #include "virtio-blk.h"
 #include "virtio-net.h"
 #include "virtio-rng.h"