Skip to content

Commit de1177e

Browse files
Jiri Pirkomstsirkin
authored andcommitted
virtio: make virtio_find_vqs() call virtio_find_vqs_ctx()
In order to prepare for conversion of virtio_find_vqs*() arguments, make virtio_find_vqs() to call virtio_find_vqs_ctx() instead of op directly. Signed-off-by: Jiri Pirko <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 87bb477 commit de1177e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

include/linux/virtio_config.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,22 +225,23 @@ struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev,
225225
}
226226

227227
static inline
228-
int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
228+
int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
229229
struct virtqueue *vqs[], vq_callback_t *callbacks[],
230-
const char * const names[],
230+
const char * const names[], const bool *ctx,
231231
struct irq_affinity *desc)
232232
{
233-
return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc);
233+
return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx,
234+
desc);
234235
}
235236

236237
static inline
237-
int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
238+
int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
238239
struct virtqueue *vqs[], vq_callback_t *callbacks[],
239-
const char * const names[], const bool *ctx,
240+
const char * const names[],
240241
struct irq_affinity *desc)
241242
{
242-
return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx,
243-
desc);
243+
return virtio_find_vqs_ctx(vdev, nvqs, vqs, callbacks,
244+
names, NULL, desc);
244245
}
245246

246247
/**

0 commit comments

Comments
 (0)