Skip to contentSkip to conversation

blk-cgroup: Fix some kernel-doc comments

PATCH Applied Yang Li 2 participants 3 messages Dec 2, 2022

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 blk-cgroup: Fix some kernel-doc comments

Make the description of @gendisk to @disk in blkcg_schedule_throttle() to clear the below warnings:

block/blk-cgroup.c:1850: warning: Function parameter or member 'disk' not described in 'blkcg_schedule_throttle' block/blk-cgroup.c:1850: warning: Excess function parameter 'gendisk' description in 'blkcg_schedule_throttle'

---
 block/blk-cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-cgroup.c +1 -1
index 1bb939d3b793..77f44472b41e 100644
@@ -1831,7 +1831,7 @@ void blkcg_maybe_throttle_current(void)
 
 /**
  * blkcg_schedule_throttle - this task needs to check for throttling
- * @gendisk: disk to throttle
+ * @disk: disk to throttle
  * @use_memdelay: do we charge this to memory delay for PSI
  *
  * This is called by the IO controller when we know there's delay accumulated
Signature · 1 line
2.20.1.7.g153144c
maintainer
#1 lore raw
Quoted 5 lines · Yang Li

Make the description of @gendisk to @disk in blkcg_schedule_throttle() to clear the below warnings:

block/blk-cgroup.c:1850: warning: Function parameter or member 'disk' not described in 'blkcg_schedule_throttle' block/blk-cgroup.c:1850: warning: Excess function parameter 'gendisk' description in 'blkcg_schedule_throttle'

Please always include a fixes line:

Fixes de185b56e8a6 ("blk-cgroup: pass a gendisk to blkcg_schedule_throttle")
Signature · 1 line
Jens Axboe
maintainer Applied
#2 lore raw
In reply to Yang Li
Quoted 8 lines · Yang Li

Make the description of @gendisk to @disk in blkcg_schedule_throttle() to clear the below warnings:

block/blk-cgroup.c:1850: warning: Function parameter or member 'disk' not described in 'blkcg_schedule_throttle' block/blk-cgroup.c:1850: warning: Excess function parameter 'gendisk' description in 'blkcg_schedule_throttle'

[...]

Applied, thanks!

[1/1] blk-cgroup: Fix some kernel-doc comments

      commit: 1d6df9d352bb2a3c2ddb32851dfcafb417c47762

Best regards,

Signature · 1 line
Jens Axboe