]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
virtio-9p-device: move qdev properties into virtio-9p-device.c
authorShannon Zhao <shannon.zhao@linaro.org>
Wed, 10 Jun 2015 15:04:35 +0000 (23:04 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 16:15:34 +0000 (18:15 +0200)
As only one place in virtio-9p-device.c uses
DEFINE_VIRTIO_9P_PROPERTIES, there is no need to expose it. Inline it
into virtio-9p-device.c to avoid wrongly use.

Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/9pfs/virtio-9p-device.c
hw/9pfs/virtio-9p.h

index 60f9ff9a31f774f282577fef25c7fe48a742fa50..3f4c9e7a020b64e70360957d1b1cb7880f817ad7 100644 (file)
@@ -140,7 +140,8 @@ out:
 /* virtio-9p device */
 
 static Property virtio_9p_properties[] = {
-    DEFINE_VIRTIO_9P_PROPERTIES(V9fsState, fsconf),
+    DEFINE_PROP_STRING("mount_tag", V9fsState, fsconf.tag),
+    DEFINE_PROP_STRING("fsdev", V9fsState, fsconf.fsdev_id),
     DEFINE_PROP_END_OF_LIST(),
 };
 
index 58dafa9e145ba21127da62daee4c086d1dd24dd8..2e7d488570832c335af6df07b899030ee8fb8a14 100644 (file)
@@ -391,8 +391,4 @@ extern int v9fs_name_to_path(V9fsState *s, V9fsPath *dirpath,
 #define VIRTIO_9P(obj) \
         OBJECT_CHECK(V9fsState, (obj), TYPE_VIRTIO_9P)
 
-#define DEFINE_VIRTIO_9P_PROPERTIES(_state, _field)             \
-        DEFINE_PROP_STRING("mount_tag", _state, _field.tag),    \
-        DEFINE_PROP_STRING("fsdev", _state, _field.fsdev_id)
-
 #endif