virtio: remove obsolete virtqueue_get_queue_index()
You can access it directly now, since 3.8: v3.7-rc1-13-g06ca287 'virtio: move queue_index and num_free fields into core struct virtqueue.' Cc: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6b0c21cede
commit
9d0ca6ed6f
@@ -166,7 +166,7 @@ static void virtio_ccw_kvm_notify(struct virtqueue *vq)
|
||||
|
||||
vcdev = to_vc_device(info->vq->vdev);
|
||||
ccw_device_get_schid(vcdev->cdev, &schid);
|
||||
do_kvm_notify(schid, virtqueue_get_queue_index(vq));
|
||||
do_kvm_notify(schid, vq->index);
|
||||
}
|
||||
|
||||
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)
|
||||
unsigned long flags;
|
||||
unsigned long size;
|
||||
int ret;
|
||||
unsigned int index = virtqueue_get_queue_index(vq);
|
||||
unsigned int index = vq->index;
|
||||
|
||||
/* Remove from our list. */
|
||||
spin_lock_irqsave(&vcdev->lock, flags);
|
||||
@@ -610,7 +610,7 @@ static struct virtqueue *virtio_ccw_vq_by_ind(struct virtio_ccw_device *vcdev,
|
||||
vq = NULL;
|
||||
spin_lock_irqsave(&vcdev->lock, flags);
|
||||
list_for_each_entry(info, &vcdev->virtqueues, node) {
|
||||
if (virtqueue_get_queue_index(info->vq) == index) {
|
||||
if (info->vq->index == index) {
|
||||
vq = info->vq;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user