Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ublk: pass const pointer to ublk_queue_is_zoned()

Pass const pointer to ublk_queue_is_zoned() because it is readonly.

Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Ming Lei and committed by
Jens Axboe
3443bab2 0a9beafa

+1 -1
+1 -1
drivers/block/ublk_drv.c
··· 265 265 return ub->dev_info.flags & UBLK_F_ZONED; 266 266 } 267 267 268 - static inline bool ublk_queue_is_zoned(struct ublk_queue *ubq) 268 + static inline bool ublk_queue_is_zoned(const struct ublk_queue *ubq) 269 269 { 270 270 return ubq->flags & UBLK_F_ZONED; 271 271 }