diff options
-rw-r--r-- | drivers/net/virtio_net.c | 4 | ||||
-rw-r--r-- | drivers/s390/kvm/virtio_ccw.c | 6 | ||||
-rw-r--r-- | include/linux/virtio.h | 6 |
3 files changed, 5 insertions, 11 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 57ac4b0294bc..f7d67e8eb1aa 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -154,7 +154,7 @@ struct padded_vnet_hdr { | |||
154 | */ | 154 | */ |
155 | static int vq2txq(struct virtqueue *vq) | 155 | static int vq2txq(struct virtqueue *vq) |
156 | { | 156 | { |
157 | return (virtqueue_get_queue_index(vq) - 1) / 2; | 157 | return (vq->index - 1) / 2; |
158 | } | 158 | } |
159 | 159 | ||
160 | static int txq2vq(int txq) | 160 | static int txq2vq(int txq) |
@@ -164,7 +164,7 @@ static int txq2vq(int txq) | |||
164 | 164 | ||
165 | static int vq2rxq(struct virtqueue *vq) | 165 | static int vq2rxq(struct virtqueue *vq) |
166 | { | 166 | { |
167 | return virtqueue_get_queue_index(vq) / 2; | 167 | return vq->index / 2; |
168 | } | 168 | } |
169 | 169 | ||
170 | static int rxq2vq(int rxq) | 170 | static int rxq2vq(int rxq) |
diff --git a/drivers/s390/kvm/virtio_ccw.c b/drivers/s390/kvm/virtio_ccw.c index 2029b6caa595..fb877b59ec57 100644 --- a/drivers/s390/kvm/virtio_ccw.c +++ b/drivers/s390/kvm/virtio_ccw.c | |||
@@ -166,7 +166,7 @@ static void virtio_ccw_kvm_notify(struct virtqueue *vq) | |||
166 | 166 | ||
167 | vcdev = to_vc_device(info->vq->vdev); | 167 | vcdev = to_vc_device(info->vq->vdev); |
168 | ccw_device_get_schid(vcdev->cdev, &schid); | 168 | ccw_device_get_schid(vcdev->cdev, &schid); |
169 | do_kvm_notify(schid, virtqueue_get_queue_index(vq)); | 169 | do_kvm_notify(schid, vq->index); |
170 | } | 170 | } |
171 | 171 | ||
172 | static int virtio_ccw_read_vq_conf(struct virtio_ccw_device *vcdev, | 172 | static int virtio_ccw_read_vq_conf(struct virtio_ccw_device *vcdev, |
@@ -188,7 +188,7 @@ static void virtio_ccw_del_vq(struct virtqueue *vq, struct ccw1 *ccw) | |||
188 | unsigned long flags; | 188 | unsigned long flags; |
189 | unsigned long size; | 189 | unsigned long size; |
190 | int ret; | 190 | int ret; |
191 | unsigned int index = virtqueue_get_queue_index(vq); | 191 | unsigned int index = vq->index; |
192 | 192 | ||
193 | /* Remove from our list. */ | 193 | /* Remove from our list. */ |
194 | spin_lock_irqsave(&vcdev->lock, flags); | 194 | spin_lock_irqsave(&vcdev->lock, flags); |
@@ -610,7 +610,7 @@ static struct virtqueue *virtio_ccw_vq_by_ind(struct virtio_ccw_device *vcdev, | |||
610 | vq = NULL; | 610 | vq = NULL; |
611 | spin_lock_irqsave(&vcdev->lock, flags); | 611 | spin_lock_irqsave(&vcdev->lock, flags); |
612 | list_for_each_entry(info, &vcdev->virtqueues, node) { | 612 | list_for_each_entry(info, &vcdev->virtqueues, node) { |
613 | if (virtqueue_get_queue_index(info->vq) == index) { | 613 | if (info->vq->index == index) { |
614 | vq = info->vq; | 614 | vq = info->vq; |
615 | break; | 615 | break; |
616 | } | 616 | } |
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index ff6714e6d0f5..2d7a5e045908 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h | |||
@@ -58,12 +58,6 @@ void *virtqueue_detach_unused_buf(struct virtqueue *vq); | |||
58 | 58 | ||
59 | unsigned int virtqueue_get_vring_size(struct virtqueue *vq); | 59 | unsigned int virtqueue_get_vring_size(struct virtqueue *vq); |
60 | 60 | ||
61 | /* FIXME: Obsolete accessor, but required for virtio_net merge. */ | ||
62 | static inline unsigned int virtqueue_get_queue_index(struct virtqueue *vq) | ||
63 | { | ||
64 | return vq->index; | ||
65 | } | ||
66 | |||
67 | /** | 61 | /** |
68 | * virtio_device - representation of a device using virtio | 62 | * virtio_device - representation of a device using virtio |
69 | * @index: unique position on the virtio bus | 63 | * @index: unique position on the virtio bus |