From: Christoph Hellwig Date: Mon, 26 Aug 2024 17:37:55 +0000 (+0200) Subject: block: constify the lim argument to queue_limits_max_zone_append_sectors X-Git-Tag: v6.12-rc1~204^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=379b122a3ec8033aa43cb70e8ecb6fb7f98aa68f;p=thirdparty%2Flinux.git block: constify the lim argument to queue_limits_max_zone_append_sectors queue_limits_max_zone_append_sectors doesn't change the lim argument, so mark it as const. Signed-off-by: Christoph Hellwig Reviewed-by: Damien Le Moal Tested-by: Hans Holmberg Reviewed-by: Hans Holmberg Link: https://lore.kernel.org/r/20240826173820.1690925-3-hch@lst.de Signed-off-by: Jens Axboe --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index e85ec73a07d57..ec3ea5d1f99df 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1187,7 +1187,8 @@ static inline unsigned int queue_max_segment_size(const struct request_queue *q) return q->limits.max_segment_size; } -static inline unsigned int queue_limits_max_zone_append_sectors(struct queue_limits *l) +static inline unsigned int +queue_limits_max_zone_append_sectors(const struct queue_limits *l) { unsigned int max_sectors = min(l->chunk_sectors, l->max_hw_sectors);