Skip to content

Commit 3e8d51c

Browse files
Jiri Pirkomstsirkin
authored andcommitted
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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent c95e67b commit 3e8d51c

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

include/linux/virtio_config.h

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -230,38 +230,6 @@ int virtio_find_vqs_info(struct virtio_device *vdev, unsigned int nvqs,
230230
return vdev->config->find_vqs(vdev, nvqs, vqs, vqs_info, desc);
231231
}
232232

233-
static inline
234-
int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
235-
struct virtqueue *vqs[], vq_callback_t *callbacks[],
236-
const char * const names[], const bool *ctx,
237-
struct irq_affinity *desc)
238-
{
239-
struct virtqueue_info *vqs_info;
240-
int err, i;
241-
242-
vqs_info = kmalloc_array(nvqs, sizeof(*vqs_info), GFP_KERNEL);
243-
if (!vqs_info)
244-
return -ENOMEM;
245-
for (i = 0; i < nvqs; i++) {
246-
vqs_info[i].name = names[i];
247-
vqs_info[i].callback = callbacks[i];
248-
vqs_info[i].ctx = ctx ? ctx[i] : false;
249-
}
250-
err = virtio_find_vqs_info(vdev, nvqs, vqs, vqs_info, desc);
251-
kfree(vqs_info);
252-
return err;
253-
}
254-
255-
static inline
256-
int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
257-
struct virtqueue *vqs[], vq_callback_t *callbacks[],
258-
const char * const names[],
259-
struct irq_affinity *desc)
260-
{
261-
return virtio_find_vqs_ctx(vdev, nvqs, vqs, callbacks,
262-
names, NULL, desc);
263-
}
264-
265233
static inline
266234
struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev,
267235
vq_callback_t *c, const char *n)

0 commit comments

Comments
 (0)