From: Lukas Bulwahn Date: Fri, 29 Jan 2021 04:55:05 +0000 (+0100) Subject: block: remove typo in kernel-doc of set_disk_ro() X-Git-Tag: accepted/tizen/unified/20230118.172025~7683^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f31bee3601986b66446acc83d9db57f21d764fd;p=platform%2Fkernel%2Flinux-rpi.git block: remove typo in kernel-doc of set_disk_ro() Commit 52f019d43c22 ("block: add a hard-readonly flag to struct gendisk") provides some kernel-doc for set_disk_ro(), but introduces a small typo. Hence, make htmldocs warns on ./block/genhd.c:1441: warning: Function parameter or member 'read_only' not described in 'set_disk_ro' warning: Excess function parameter 'ready_only' description in 'set_disk_ro' Remove that typo in the kernel-doc for set_disk_ro(). Signed-off-by: Lukas Bulwahn Reviewed-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/block/genhd.c b/block/genhd.c index d3ef29f..304f8dc 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -1431,7 +1431,7 @@ static void set_disk_ro_uevent(struct gendisk *gd, int ro) /** * set_disk_ro - set a gendisk read-only * @disk: gendisk to operate on - * @ready_only: %true to set the disk read-only, %false set the disk read/write + * @read_only: %true to set the disk read-only, %false set the disk read/write * * This function is used to indicate whether a given disk device should have its * read-only flag set. set_disk_ro() is typically used by device drivers to