* [PATCH] fork: Fix kernel-doc
@ 2023-08-24 19:36 Matthew Wilcox (Oracle)
2023-08-24 21:39 ` Randy Dunlap
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Matthew Wilcox (Oracle) @ 2023-08-24 19:36 UTC (permalink / raw)
To: Jonathan Corbet
Cc: Matthew Wilcox (Oracle), linux-doc, Christian Brauner,
linux-kernel
Fix the various warnings from kernel-doc in kernel/fork.c
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
kernel/fork.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/kernel/fork.c b/kernel/fork.c
index a9c18d480dc5..63d8c6c057a9 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1400,6 +1400,8 @@ EXPORT_SYMBOL_GPL(mmput_async);
/**
* set_mm_exe_file - change a reference to the mm's executable file
+ * @mm: The mm to change.
+ * @new_exe_file: The new file to use.
*
* This changes mm's executable file (shown as symlink /proc/[pid]/exe).
*
@@ -1439,6 +1441,8 @@ int set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file)
/**
* replace_mm_exe_file - replace a reference to the mm's executable file
+ * @mm: The mm to change.
+ * @new_exe_file: The new file to use.
*
* This changes mm's executable file (shown as symlink /proc/[pid]/exe).
*
@@ -1490,6 +1494,7 @@ int replace_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file)
/**
* get_mm_exe_file - acquire a reference to the mm's executable file
+ * @mm: The mm of interest.
*
* Returns %NULL if mm has no associated executable file.
* User must release file via fput().
@@ -1508,6 +1513,7 @@ struct file *get_mm_exe_file(struct mm_struct *mm)
/**
* get_task_exe_file - acquire a reference to the task's executable file
+ * @task: The task.
*
* Returns %NULL if task's mm (if any) has no associated executable file or
* this is a kernel thread with borrowed mm (see the comment above get_task_mm).
@@ -1530,6 +1536,7 @@ struct file *get_task_exe_file(struct task_struct *task)
/**
* get_task_mm - acquire a reference to the task's mm
+ * @task: The task.
*
* Returns %NULL if the task has no mm. Checks PF_KTHREAD (meaning
* this kernel workthread has transiently adopted a user mm with use_mm,
@@ -2109,11 +2116,11 @@ const struct file_operations pidfd_fops = {
* __pidfd_prepare - allocate a new pidfd_file and reserve a pidfd
* @pid: the struct pid for which to create a pidfd
* @flags: flags of the new @pidfd
- * @pidfd: the pidfd to return
+ * @ret: Where to return the file for the pidfd.
*
* Allocate a new file that stashes @pid and reserve a new pidfd number in the
* caller's file descriptor table. The pidfd is reserved but not installed yet.
-
+ *
* The helper doesn't perform checks on @pid which makes it useful for pidfds
* created via CLONE_PIDFD where @pid has no task attached when the pidfd and
* pidfd file are prepared.
@@ -2160,7 +2167,7 @@ static int __pidfd_prepare(struct pid *pid, unsigned int flags, struct file **re
* pidfd_prepare - allocate a new pidfd_file and reserve a pidfd
* @pid: the struct pid for which to create a pidfd
* @flags: flags of the new @pidfd
- * @pidfd: the pidfd to return
+ * @ret: Where to return the pidfd.
*
* Allocate a new file that stashes @pid and reserve a new pidfd number in the
* caller's file descriptor table. The pidfd is reserved but not installed yet.
@@ -3188,7 +3195,7 @@ static bool clone3_args_valid(struct kernel_clone_args *kargs)
}
/**
- * clone3 - create a new process with specific properties
+ * sys_clone3 - create a new process with specific properties
* @uargs: argument structure
* @size: size of @uargs
*
--
2.40.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] fork: Fix kernel-doc
2023-08-24 19:36 [PATCH] fork: Fix kernel-doc Matthew Wilcox (Oracle)
@ 2023-08-24 21:39 ` Randy Dunlap
2023-08-25 7:48 ` Christian Brauner
2023-10-03 16:09 ` Jonathan Corbet
2 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2023-08-24 21:39 UTC (permalink / raw)
To: Matthew Wilcox (Oracle), Jonathan Corbet
Cc: linux-doc, Christian Brauner, linux-kernel
On 8/24/23 12:36, Matthew Wilcox (Oracle) wrote:
> Fix the various warnings from kernel-doc in kernel/fork.c
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
> kernel/fork.c | 15 +++++++++++----
> 1 file changed, 11 insertions(+), 4 deletions(-)
>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
--
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fork: Fix kernel-doc
2023-08-24 19:36 [PATCH] fork: Fix kernel-doc Matthew Wilcox (Oracle)
2023-08-24 21:39 ` Randy Dunlap
@ 2023-08-25 7:48 ` Christian Brauner
2023-10-03 16:09 ` Jonathan Corbet
2 siblings, 0 replies; 4+ messages in thread
From: Christian Brauner @ 2023-08-25 7:48 UTC (permalink / raw)
To: Matthew Wilcox (Oracle); +Cc: Jonathan Corbet, linux-doc, linux-kernel
On Thu, Aug 24, 2023 at 08:36:44PM +0100, Matthew Wilcox wrote:
> Fix the various warnings from kernel-doc in kernel/fork.c
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
Looks good to me,
Reviewed-by: Christian Brauner <brauner@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fork: Fix kernel-doc
2023-08-24 19:36 [PATCH] fork: Fix kernel-doc Matthew Wilcox (Oracle)
2023-08-24 21:39 ` Randy Dunlap
2023-08-25 7:48 ` Christian Brauner
@ 2023-10-03 16:09 ` Jonathan Corbet
2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2023-10-03 16:09 UTC (permalink / raw)
To: Matthew Wilcox (Oracle)
Cc: Matthew Wilcox (Oracle), linux-doc, Christian Brauner,
linux-kernel
"Matthew Wilcox (Oracle)" <willy@infradead.org> writes:
> Fix the various warnings from kernel-doc in kernel/fork.c
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
> kernel/fork.c | 15 +++++++++++----
> 1 file changed, 11 insertions(+), 4 deletions(-)
It looks like this never got picked up by anybody, so I've applied it
now.
Thanks,
jon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-03 16:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-24 19:36 [PATCH] fork: Fix kernel-doc Matthew Wilcox (Oracle)
2023-08-24 21:39 ` Randy Dunlap
2023-08-25 7:48 ` Christian Brauner
2023-10-03 16:09 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox