Skip to contentSkip to conversation

block: fix kernel-doc for disk_force_media_change()

PATCH Applied Randy Dunlap 3 participants 3 messages Sep 26, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: fix kernel-doc for disk_force_media_change()

Drop one function parameter's kernel-doc comment since the parameter was removed. This prevents a kernel-doc warning:

block/disk-events.c:300: warning: Excess function parameter 'events' description in 'disk_force_media_change'

Fixes ab6860f62bfe ("block: simplify the disk_force_media_change interface")
Closes lore.kernel.org/r/[email protected]
Cc Christoph Hellwig <[email protected]>
Cc Jens Axboe <[email protected]>
---
 block/disk-events.c |    1 -
 1 file changed, 1 deletion(-)
block/disk-events.c +0 -1
diff -- a/block/disk-events.c b/block/disk-events.c
@@ -290,7 +290,6 @@ EXPORT_SYMBOL(disk_check_media_change);
 /**
  * disk_force_media_change - force a media change event
  * @disk: the disk which will raise the event
- * @events: the events to raise
  *
  * Should be called when the media changes for @disk.  Generates a uevent
  * and attempts to free all dentries and inodes and invalidates all block
maintainer Applied
#2 lore raw
In reply to Randy Dunlap
Quoted 6 lines · Randy Dunlap

Drop one function parameter's kernel-doc comment since the parameter was removed. This prevents a kernel-doc warning:

block/disk-events.c:300: warning: Excess function parameter 'events' description in 'disk_force_media_change'

Applied, thanks!

[1/1] block: fix kernel-doc for disk_force_media_change()

      commit: a578a25339aca38e23bb5af6e3fc6c2c51f0215c

Best regards,

Signature · 1 line
Jens Axboe