Skip to content

Commit

Permalink
virtio: Revert "virtio: add helper virtio_find_vqs_ctx_size()"
Browse files Browse the repository at this point in the history
This reverts commit fe3dc04: the
API is now unused and in fact can't be implemented on top of a legacy
device.

Fixes: fe3dc04 ("virtio: add helper virtio_find_vqs_ctx_size()")
Cc: "Xuan Zhuo" <xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20220816053602.173815-3-mst@redhat.com>
  • Loading branch information
Michael S. Tsirkin committed Aug 16, 2022
1 parent 2e9ca76 commit 484b9fa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/linux/virtio_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,18 +241,6 @@ int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
ctx, desc);
}

static inline
int virtio_find_vqs_ctx_size(struct virtio_device *vdev, u32 nvqs,
struct virtqueue *vqs[],
vq_callback_t *callbacks[],
const char * const names[],
u32 sizes[],
const bool *ctx, struct irq_affinity *desc)
{
return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, sizes,
ctx, desc);
}

/**
* virtio_synchronize_cbs - synchronize with virtqueue callbacks
* @vdev: the device
Expand Down

0 comments on commit 484b9fa

Please sign in to comment.