diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2024-07-08 21:54:32 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-07-09 00:01:11 -0600 |
commit | 0ffc46eb1b6d0b9dd07e4f2b1019edd4fe678b9e (patch) | |
tree | d5cfa7dc4d8b8e0abb0c7f9c530cec8ca90627ad /block | |
parent | 9423c653fe611070d875b374fb322dc44acce3f2 (diff) |
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 <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>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-merge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-merge.c b/block/blk-merge.c index e41ea3318099..1bce85479092 100644 --- a/block/blk-merge.c +++ b/block/blk-merge.c @@ -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. |