Skip to content

Commit 8ebf975

Browse files
rddunlaptorvalds
authored andcommitted
block: fix kernel-doc in recent block/ changes
Fix kernel-doc warnings in recently changed block/ source code. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4b4f1d0 commit 8ebf975

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

block/blk-core.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -884,9 +884,10 @@ EXPORT_SYMBOL(blk_get_request);
884884

885885
/**
886886
* blk_make_request - given a bio, allocate a corresponding struct request.
887-
*
887+
* @q: target request queue
888888
* @bio: The bio describing the memory mappings that will be submitted for IO.
889889
* It may be a chained-bio properly constructed by block/bio layer.
890+
* @gfp_mask: gfp flags to be used for memory allocation
890891
*
891892
* blk_make_request is the parallel of generic_make_request for BLOCK_PC
892893
* type commands. Where the struct request needs to be farther initialized by
@@ -1872,14 +1873,14 @@ EXPORT_SYMBOL(blk_fetch_request);
18721873

18731874
/**
18741875
* blk_update_request - Special helper function for request stacking drivers
1875-
* @rq: the request being processed
1876+
* @req: the request being processed
18761877
* @error: %0 for success, < %0 for error
1877-
* @nr_bytes: number of bytes to complete @rq
1878+
* @nr_bytes: number of bytes to complete @req
18781879
*
18791880
* Description:
1880-
* Ends I/O on a number of bytes attached to @rq, but doesn't complete
1881-
* the request structure even if @rq doesn't have leftover.
1882-
* If @rq has leftover, sets it up for the next range of segments.
1881+
* Ends I/O on a number of bytes attached to @req, but doesn't complete
1882+
* the request structure even if @req doesn't have leftover.
1883+
* If @req has leftover, sets it up for the next range of segments.
18831884
*
18841885
* This special helper function is only for request stacking drivers
18851886
* (e.g. request-based dm) so that they can handle partial completion.
@@ -2145,7 +2146,7 @@ EXPORT_SYMBOL_GPL(blk_end_request);
21452146
/**
21462147
* blk_end_request_all - Helper function for drives to finish the request.
21472148
* @rq: the request to finish
2148-
* @err: %0 for success, < %0 for error
2149+
* @error: %0 for success, < %0 for error
21492150
*
21502151
* Description:
21512152
* Completely finish @rq.
@@ -2166,7 +2167,7 @@ EXPORT_SYMBOL_GPL(blk_end_request_all);
21662167
/**
21672168
* blk_end_request_cur - Helper function to finish the current request chunk.
21682169
* @rq: the request to finish the current chunk for
2169-
* @err: %0 for success, < %0 for error
2170+
* @error: %0 for success, < %0 for error
21702171
*
21712172
* Description:
21722173
* Complete the current consecutively mapped chunk from @rq.
@@ -2203,7 +2204,7 @@ EXPORT_SYMBOL_GPL(__blk_end_request);
22032204
/**
22042205
* __blk_end_request_all - Helper function for drives to finish the request.
22052206
* @rq: the request to finish
2206-
* @err: %0 for success, < %0 for error
2207+
* @error: %0 for success, < %0 for error
22072208
*
22082209
* Description:
22092210
* Completely finish @rq. Must be called with queue lock held.
@@ -2224,7 +2225,7 @@ EXPORT_SYMBOL_GPL(__blk_end_request_all);
22242225
/**
22252226
* __blk_end_request_cur - Helper function to finish the current request chunk.
22262227
* @rq: the request to finish the current chunk for
2227-
* @err: %0 for success, < %0 for error
2228+
* @error: %0 for success, < %0 for error
22282229
*
22292230
* Description:
22302231
* Complete the current consecutively mapped chunk from @rq. Must

block/blk-settings.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ EXPORT_SYMBOL(blk_queue_physical_block_size);
343343
/**
344344
* blk_queue_alignment_offset - set physical block alignment offset
345345
* @q: the request queue for the device
346-
* @alignment: alignment offset in bytes
346+
* @offset: alignment offset in bytes
347347
*
348348
* Description:
349349
* Some devices are naturally misaligned to compensate for things like
@@ -362,7 +362,7 @@ EXPORT_SYMBOL(blk_queue_alignment_offset);
362362
/**
363363
* blk_queue_io_min - set minimum request size for the queue
364364
* @q: the request queue for the device
365-
* @io_min: smallest I/O size in bytes
365+
* @min: smallest I/O size in bytes
366366
*
367367
* Description:
368368
* Some devices have an internal block size bigger than the reported
@@ -385,7 +385,7 @@ EXPORT_SYMBOL(blk_queue_io_min);
385385
/**
386386
* blk_queue_io_opt - set optimal request size for the queue
387387
* @q: the request queue for the device
388-
* @io_opt: optimal request size in bytes
388+
* @opt: optimal request size in bytes
389389
*
390390
* Description:
391391
* Drivers can call this function to set the preferred I/O request

0 commit comments

Comments
 (0)