Skip to content

Commit 18cd029

Browse files
Jiri Pirkomstsirkin
authored andcommitted
virtio: remove the original find_vqs() op
As it is no longer used, remove it. Signed-off-by: Jiri Pirko <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 992648f commit 18cd029

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

include/linux/virtio_config.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,6 @@ struct virtqueue_info {
6363
* After this, status and feature negotiation must be done again
6464
* Device must not be reset from its vq/config callbacks, or in
6565
* parallel with being added/removed.
66-
* @find_vqs: find virtqueues and instantiate them.
67-
* vdev: the virtio_device
68-
* nvqs: the number of virtqueues to find
69-
* vqs: on success, includes new virtqueues
70-
* callbacks: array of callbacks, for each virtqueue
71-
* include a NULL entry for vqs that do not need a callback
72-
* names: array of virtqueue names (mainly for debugging)
73-
* include a NULL entry for vqs unused by driver
74-
* Returns 0 on success or error status
7566
* @find_vqs_info: find virtqueues and instantiate them.
7667
* vdev: the virtio_device
7768
* nvqs: the number of virtqueues to find
@@ -125,10 +116,6 @@ struct virtio_config_ops {
125116
u8 (*get_status)(struct virtio_device *vdev);
126117
void (*set_status)(struct virtio_device *vdev, u8 status);
127118
void (*reset)(struct virtio_device *vdev);
128-
int (*find_vqs)(struct virtio_device *, unsigned nvqs,
129-
struct virtqueue *vqs[], vq_callback_t *callbacks[],
130-
const char * const names[], const bool *ctx,
131-
struct irq_affinity *desc);
132119
int (*find_vqs_info)(struct virtio_device *vdev, unsigned int nvqs,
133120
struct virtqueue *vqs[],
134121
struct virtqueue_info vqs_info[],
@@ -252,10 +239,6 @@ int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
252239
struct virtqueue_info *vqs_info;
253240
int err, i;
254241

255-
if (!vdev->config->find_vqs_info)
256-
return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks,
257-
names, ctx, desc);
258-
259242
vqs_info = kmalloc_array(nvqs, sizeof(*vqs_info), GFP_KERNEL);
260243
if (!vqs_info)
261244
return -ENOMEM;

0 commit comments

Comments
 (0)