Skip to contentSkip to conversation

block: blk-mq.c: fix @at_head kernel-doc warning

PATCH Applied Randy Dunlap 3 participants 4 messages Aug 16, 2020 Block layer

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: blk-mq.c: fix @at_head kernel-doc warning

Fix a new kernel-doc warning in block/blk-mq.c:

../block/blk-mq.c:1844: warning: Function parameter or member 'at_head' not described in 'blk_mq_request_bypass_insert'

Fixes 105663f73e71 ("blk-mq: Document functions for sending request")
Cc André Almeida <[email protected]>
Cc Jens Axboe <[email protected]>
---
 block/blk-mq.c |    1 +
 1 file changed, 1 insertion(+)
block/blk-mq.c +1 -0
@@ -1834,6 +1834,7 @@ void __blk_mq_insert_request(struct blk_
 /**
  * blk_mq_request_bypass_insert - Insert a request at dispatch list.
  * @rq: Pointer to request to be inserted.
+ * @at_head: true if the request should be inserted at the head of the list.
  * @run_queue: If we should run the hardware queue after inserting the request.
  *
  * Should only be used carefully, when the caller knows we want to
maintainer Applied
#1 lore raw
Quoted 3 lines · Randy Dunlap

Fix a new kernel-doc warning in block/blk-mq.c:

../block/blk-mq.c:1844: warning: Function parameter or member 'at_head' not described in 'blk_mq_request_bypass_insert'

Applied, thanks.

Signature · 1 line
Jens Axboe
#2 lore raw
In reply to Randy Dunlap

Hi Randy,

Quoted 5 lines · Randy Dunlap

Fix a new kernel-doc warning in block/blk-mq.c:

../block/blk-mq.c:1844: warning: Function parameter or member 'at_head' not described in 'blk_mq_request_bypass_insert'

Fixes 105663f73e71 ("blk-mq: Document functions for sending request")

By the time commit 105663f73e71 ("blk-mq: Document functions for sending request") was merged, the parameter @at_head didn't exist[1].

The commit that inserted this warning is 01e99aeca397 ("blk-mq: insert passthrough request into hctx->dispatch directly"), that added @at_head without updating the documentation.

Thanks,
André

[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/block/blk-mq.c?id=105663f73e71b5e79ecf472c0499c9acde654b28#n1673

#3 lore raw
Quoted 12 lines · André Almeida

Hi Randy,

Quoted 5 lines · Randy Dunlap

Fix a new kernel-doc warning in block/blk-mq.c:

../block/blk-mq.c:1844: warning: Function parameter or member 'at_head' not described in 'blk_mq_request_bypass_insert'

Fixes 105663f73e71 ("blk-mq: Document functions for sending request")

By the time commit 105663f73e71 ("blk-mq: Document functions for sending request") was merged, the parameter @at_head didn't exist[1].

Quoted 6 lines

The commit that inserted this warning is 01e99aeca397 ("blk-mq: insert passthrough request into hctx->dispatch directly"), that added @at_head without updating the documentation.

Thanks,
André

Hi André,

Sorry, I'll correct that.

thanks.

Quoted 2 lines

[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/block/blk-mq.c?id=105663f73e71b5e79ecf472c0499c9acde654b28#n1673

Signature · 1 line
~Randy