Skip to content

Commit b7621eb

Browse files
rddunlaptorvalds
authored andcommitted
kernel: acct.c: fix some kernel-doc nits
Fix kernel-doc notation to use the documented Returns: syntax and place the function description for acct_process() on the first line where it should be. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Link: https://lkml.kernel.org/r/b4c33e5d-98e8-0c47-77b6-ac1859f94d7f@infradead.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7b7b8a2 commit b7621eb

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎kernel/acct.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ static DEFINE_MUTEX(acct_on_mutex);
263263
* sys_acct - enable/disable process accounting
264264
* @name: file name for accounting records or NULL to shutdown accounting
265265
*
266-
* Returns 0 for success or negative errno values for failure.
267-
*
268266
* sys_acct() is the only system call needed to implement process
269267
* accounting. It takes the name of the file where accounting records
270268
* should be written. If the filename is NULL, accounting will be
271269
* shutdown.
270+
*
271+
* Returns: 0 for success or negative errno values for failure.
272272
*/
273273
SYSCALL_DEFINE1(acct, const char __user *, name)
274274
{
@@ -586,9 +586,7 @@ static void slow_acct_process(struct pid_namespace *ns)
586586
}
587587

588588
/**
589-
* acct_process
590-
*
591-
* handles process accounting for an exiting task
589+
* acct_process - handles process accounting for an exiting task
592590
*/
593591
void acct_process(void)
594592
{

0 commit comments

Comments
 (0)