ublk: take const ubq pointer in ublk_get_iod()
authorCaleb Sander Mateos <csander@purestorage.com>
Wed, 30 Apr 2025 22:52:29 +0000 (16:52 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 May 2025 15:22:30 +0000 (09:22 -0600)
commit2a86eec6396ff6d40e46d5cc11f99f1e7bbec78e
tree926f80e78a9a6ec014c2a2dbe8dfe4d6a94f653d
parent5a43d93588dca88af0333ce18dedcfb0276ec4fe
ublk: take const ubq pointer in ublk_get_iod()

ublk_get_iod() doesn't modify the struct ublk_queue it is passed.
Clarify that by making the argument a const pointer.

Move the function definition earlier in the file so it doesn't need a
forward declaration.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250430225234.2676781-5-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c