kernel-docs: fix kernel-doc format problems
Subsystems (2)
PATCH 1/1 kernel-docs: fix kernel-doc format problems
From: Randy Dunlap <[email protected]>
Convert to proper kernel-doc format.
Some have extra blank lines (not allowed immed. after the function name) or need blank lines (after all parameters). Function summary must be only one line.
Colon (":") in a function description does weird things (causes kernel-doc to think that it's a new section head sadly).
Signed-off-by Randy Dunlap <[email protected]>
---
drivers/block/ll_rw_blk.c | 1 - fs/fs-writeback.c | 5 +++-- include/linux/kernel.h | 1 - kernel/sys.c | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-)
drivers/block/ll_rw_blk.c renamed from drivers/block/ll_rw_blk.c~kdoc_no_blank_lines +0 -1
@@ -706,7 +706,6 @@ EXPORT_SYMBOL(blk_queue_dma_alignment);/** * blk_queue_find_tag - find a request by its tag and queue -* * @q: The request queue for the device * @tag: The tag of the request *
fs/fs-writeback.c renamed from fs/fs-writeback.c~kdoc_no_blank_lines +3 -2
@@ -602,7 +602,7 @@ EXPORT_SYMBOL(sync_inode);* O_SYNC flag set, to flush dirty writes to disk. * * @what is a bitmask, specifying which part of the inode's data should be -* written and waited upon: +* written and waited upon. * * OSYNC_DATA: i_mapping's dirty data * OSYNC_METADATA: the buffers at i_mapping->private_list
@@ -668,8 +668,9 @@ int writeback_acquire(struct backing_dev/** * writeback_in_progress: determine whether there is writeback in progress -* against a backing device. * @bdi: the device's backing_dev_info structure. +* +* Determine whether there is writeback in progress against a backing device. */ int writeback_in_progress (struct backing_dev_info *bdi) {
include/linux/kernel.h renamed from include/linux/kernel.h~kdoc_no_blank_lines +0 -1
@@ -266,7 +266,6 @@ extern void dump_stack(void);/** * container_of - cast a member of a structure out to the containing structure -* * @ptr: the pointer to the member. * @type: the type of the container struct this is embedded in. * @member: the name of the member within the struct.
kernel/sys.c renamed from kernel/sys.c~kdoc_no_blank_lines +1 -1
@@ -385,7 +385,7 @@ void kernel_restart_prepare(char *cmd)/** * kernel_restart - reboot the system * @cmd: pointer to buffer containing command to execute for restart -* or NULL +* or %NULL * * Shutdown everything and perform a clean reboot. * This is not safe to call in interrupt context.
---
~Randy