]> git.proxmox.com Git - qemu.git/commitdiff
virtio: Fix compilation without CONFIG_VHOST_SCSI
authorEd Maste <emaste@freebsd.org>
Thu, 25 Apr 2013 17:38:28 +0000 (13:38 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 26 Apr 2013 11:23:31 +0000 (13:23 +0200)
Signed-off-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/s390x/s390-virtio-bus.c
hw/s390x/virtio-ccw.c
hw/s390x/virtio-ccw.h

index cf51a85fcf8837708874246146688018079bf353..a7e81d159f2062d4cb5b47c3cd43b254dc699ee5 100644 (file)
@@ -691,7 +691,9 @@ static void s390_virtio_register_types(void)
     type_register_static(&s390_virtio_blk);
     type_register_static(&s390_virtio_net);
     type_register_static(&s390_virtio_scsi);
+#ifdef CONFIG_VHOST_SCSI
     type_register_static(&s390_vhost_scsi);
+#endif
     type_register_static(&s390_virtio_rng);
     type_register_static(&s390_virtio_bridge_info);
 }
index b857413fa4e93ff8526390e30773f52acd6d48e7..c0f26460a903cd6b359eb76b4fd5b61c2d8b3082 100644 (file)
@@ -1095,7 +1095,9 @@ static void virtio_ccw_register(void)
     type_register_static(&virtio_ccw_net);
     type_register_static(&virtio_ccw_balloon);
     type_register_static(&virtio_ccw_scsi);
+#ifdef CONFIG_VHOST_SCSI
     type_register_static(&vhost_ccw_scsi);
+#endif
     type_register_static(&virtio_ccw_rng);
     type_register_static(&virtual_css_bridge_info);
 }
index 04ba1b99ee5ccf06db980da4c00ccdc373b30798..121a5f8c4a3647842e441dc8c630a09ca7e6a869 100644 (file)
@@ -101,6 +101,7 @@ typedef struct VirtIOSCSICcw {
     VirtIOSCSI vdev;
 } VirtIOSCSICcw;
 
+#ifdef CONFIG_VHOST_SCSI
 /* vhost-scsi-ccw */
 
 #define TYPE_VHOST_SCSI_CCW "vhost-scsi-ccw"
@@ -111,6 +112,7 @@ typedef struct VHostSCSICcw {
     VirtioCcwDevice parent_obj;
     VHostSCSI vdev;
 } VHostSCSICcw;
+#endif
 
 /* virtio-blk-ccw */