aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/block/blk-mq-rdma.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-08-15 10:00:43 -0700
committerJens Axboe <axboe@kernel.dk>2022-08-22 10:07:53 -0600
commita4e1d0b76e7b32c0839e72679c530445172a2564 (patch)
treecdb61b21f077be9e0ace4ebdb8dc6aa5163c8d97 /block/blk-mq-rdma.c
parentnull_blk: Modify the behavior of null_map_queues() (diff)
downloadwireguard-linux-a4e1d0b76e7b32c0839e72679c530445172a2564.tar.xz
wireguard-linux-a4e1d0b76e7b32c0839e72679c530445172a2564.zip
block: Change the return type of blk_mq_map_queues() into void
Since blk_mq_map_queues() and the .map_queues() callbacks always return 0, change their return type into void. Most callers ignore the returned value anyway. Cc: Christoph Hellwig <hch@lst.de> Cc: Jason Wang <jasowang@redhat.com> Cc: Keith Busch <kbusch@kernel.org> Cc: Martin K. Petersen <martin.petersen@oracle.com> Cc: Doug Gilbert <dgilbert@interlog.com> Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: John Garry <john.garry@huawei.com> Acked-by: Md Haris Iqbal <haris.iqbal@ionos.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Link: https://lore.kernel.org/r/20220815170043.19489-3-bvanassche@acm.org [axboe: fold in fix from Bart] Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-rdma.c')
-rw-r--r--block/blk-mq-rdma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-mq-rdma.c b/block/blk-mq-rdma.c
index 14f968e58b8f..29c1f4d6eb04 100644
--- a/block/blk-mq-rdma.c
+++ b/block/blk-mq-rdma.c
@@ -21,7 +21,7 @@
* @set->nr_hw_queues, or @dev does not provide an affinity mask for a
* vector, we fallback to the naive mapping.
*/
-int blk_mq_rdma_map_queues(struct blk_mq_queue_map *map,
+void blk_mq_rdma_map_queues(struct blk_mq_queue_map *map,
struct ib_device *dev, int first_vec)
{
const struct cpumask *mask;
@@ -36,9 +36,9 @@ int blk_mq_rdma_map_queues(struct blk_mq_queue_map *map,
map->mq_map[cpu] = map->queue_offset + queue;
}
- return 0;
+ return;
fallback:
- return blk_mq_map_queues(map);
+ blk_mq_map_queues(map);
}
EXPORT_SYMBOL_GPL(blk_mq_rdma_map_queues);