]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: fix get_max_segment_size() warning
authorChaitanya Kulkarni <kch@nvidia.com>
Tue, 9 Jul 2024 04:54:32 +0000 (21:54 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Jul 2024 06:01:11 +0000 (00:01 -0600)
Correct the parameter name in the comment of get_max_segment_size()
to fix following warning:-

block/blk-merge.c:220: warning: Function parameter or struct member 'len' not described in 'get_max_segment_size'
block/blk-merge.c:220: warning: Excess function parameter 'max_len' description in 'get_max_segment_size'

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240709045432.8688-1-kch@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c

index e41ea3318099366c360b41875c701bb496c8123c..1bce854790929a9c5ae0cfcf814059bad6f31413 100644 (file)
@@ -210,7 +210,7 @@ static inline unsigned get_max_io_size(struct bio *bio,
  * get_max_segment_size() - maximum number of bytes to add as a single segment
  * @lim: Request queue limits.
  * @paddr: address of the range to add
- * @max_len: maximum length available to add at @paddr
+ * @len: maximum length available to add at @paddr
  *
  * Returns the maximum number of bytes of the range starting at @paddr that can
  * be added to a single segment.