diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-08-15 10:00:43 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-22 10:07:53 -0600 |
commit | a4e1d0b76e7b32c0839e72679c530445172a2564 (patch) | |
tree | cdb61b21f077be9e0ace4ebdb8dc6aa5163c8d97 /include/linux/blk-mq-pci.h | |
parent | 10b41ea15e81a5597bc5944a7900e9a790bd984a (diff) | |
download | linux-stable-a4e1d0b76e7b32c0839e72679c530445172a2564.tar.gz linux-stable-a4e1d0b76e7b32c0839e72679c530445172a2564.tar.bz2 linux-stable-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 'include/linux/blk-mq-pci.h')
-rw-r--r-- | include/linux/blk-mq-pci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/blk-mq-pci.h b/include/linux/blk-mq-pci.h index 0b1f45c62623..ca544e1d3508 100644 --- a/include/linux/blk-mq-pci.h +++ b/include/linux/blk-mq-pci.h @@ -5,7 +5,7 @@ struct blk_mq_queue_map; struct pci_dev; -int blk_mq_pci_map_queues(struct blk_mq_queue_map *qmap, struct pci_dev *pdev, - int offset); +void blk_mq_pci_map_queues(struct blk_mq_queue_map *qmap, struct pci_dev *pdev, + int offset); #endif /* _LINUX_BLK_MQ_PCI_H */ |