Commit b7621ebf authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarAndrew 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.orgSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7b7b8a2c
...@@ -263,12 +263,12 @@ static DEFINE_MUTEX(acct_on_mutex); ...@@ -263,12 +263,12 @@ static DEFINE_MUTEX(acct_on_mutex);
* sys_acct - enable/disable process accounting * sys_acct - enable/disable process accounting
* @name: file name for accounting records or NULL to shutdown accounting * @name: file name for accounting records or NULL to shutdown accounting
* *
* Returns 0 for success or negative errno values for failure.
*
* sys_acct() is the only system call needed to implement process * sys_acct() is the only system call needed to implement process
* accounting. It takes the name of the file where accounting records * accounting. It takes the name of the file where accounting records
* should be written. If the filename is NULL, accounting will be * should be written. If the filename is NULL, accounting will be
* shutdown. * shutdown.
*
* Returns: 0 for success or negative errno values for failure.
*/ */
SYSCALL_DEFINE1(acct, const char __user *, name) SYSCALL_DEFINE1(acct, const char __user *, name)
{ {
...@@ -586,9 +586,7 @@ static void slow_acct_process(struct pid_namespace *ns) ...@@ -586,9 +586,7 @@ static void slow_acct_process(struct pid_namespace *ns)
} }
/** /**
* acct_process * acct_process - handles process accounting for an exiting task
*
* handles process accounting for an exiting task
*/ */
void acct_process(void) void acct_process(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment