mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 17:23:36 +00:00
virtio: remove unused virtio_find_vqs() and virtio_find_vqs_ctx() helpers
All callers of virtio_find_vqs() and virtio_find_vqs_ctx() were converted to use virtio_find_vqs_info(). Remove no longer used helpers. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Message-Id: <20240708074814.1739223-19-jiri@resnulli.us> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
c95e67bac4
commit
3e8d51c776
@ -230,38 +230,6 @@ int virtio_find_vqs_info(struct virtio_device *vdev, unsigned int nvqs,
|
||||
return vdev->config->find_vqs(vdev, nvqs, vqs, vqs_info, desc);
|
||||
}
|
||||
|
||||
static inline
|
||||
int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
|
||||
struct virtqueue *vqs[], vq_callback_t *callbacks[],
|
||||
const char * const names[], const bool *ctx,
|
||||
struct irq_affinity *desc)
|
||||
{
|
||||
struct virtqueue_info *vqs_info;
|
||||
int err, i;
|
||||
|
||||
vqs_info = kmalloc_array(nvqs, sizeof(*vqs_info), GFP_KERNEL);
|
||||
if (!vqs_info)
|
||||
return -ENOMEM;
|
||||
for (i = 0; i < nvqs; i++) {
|
||||
vqs_info[i].name = names[i];
|
||||
vqs_info[i].callback = callbacks[i];
|
||||
vqs_info[i].ctx = ctx ? ctx[i] : false;
|
||||
}
|
||||
err = virtio_find_vqs_info(vdev, nvqs, vqs, vqs_info, desc);
|
||||
kfree(vqs_info);
|
||||
return err;
|
||||
}
|
||||
|
||||
static inline
|
||||
int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
|
||||
struct virtqueue *vqs[], vq_callback_t *callbacks[],
|
||||
const char * const names[],
|
||||
struct irq_affinity *desc)
|
||||
{
|
||||
return virtio_find_vqs_ctx(vdev, nvqs, vqs, callbacks,
|
||||
names, NULL, desc);
|
||||
}
|
||||
|
||||
static inline
|
||||
struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev,
|
||||
vq_callback_t *c, const char *n)
|
||||
|
Loading…
Reference in New Issue
Block a user