Skip to content

Commit 0ffc46e

Browse files
Chaitanya Kulkarniaxboe
authored andcommitted
block: fix get_max_segment_size() warning
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 <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 9423c65 commit 0ffc46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk-merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static inline unsigned get_max_io_size(struct bio *bio,
210210
* get_max_segment_size() - maximum number of bytes to add as a single segment
211211
* @lim: Request queue limits.
212212
* @paddr: address of the range to add
213-
* @max_len: maximum length available to add at @paddr
213+
* @len: maximum length available to add at @paddr
214214
*
215215
* Returns the maximum number of bytes of the range starting at @paddr that can
216216
* be added to a single segment.

0 commit comments

Comments
 (0)