summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2023-03-10 16:03:29 -0600
committerChristian Brauner (Microsoft) <brauner@kernel.org>2023-03-12 10:54:43 +0100
commit89c8e98d8cfb0656dbeb648572df5b13e372247d (patch)
tree1b604dd82eecdc55c6c9bac2ef567646e5d51a35 /kernel/fork.c
parent094717586bf71ac20ae3b240d2654d826634b21e (diff)
downloadlinux-stable-89c8e98d8cfb0656dbeb648572df5b13e372247d.tar.gz
linux-stable-89c8e98d8cfb0656dbeb648572df5b13e372247d.tar.bz2
linux-stable-89c8e98d8cfb0656dbeb648572df5b13e372247d.zip
fork: allow kernel code to call copy_process
The next patch adds helpers like create_io_thread, but for use by the vhost layer. There are several functions, so they are in their own file instead of cluttering up fork.c. This patch allows that new file to call copy_process. Signed-off-by: Mike Christie <michael.christie@oracle.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 2918c685ede5..3363f284c6cd 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2016,7 +2016,7 @@ static void rv_task_fork(struct task_struct *p)
* parts of the process environment (as per the clone
* flags). The actual kick-off is left to the caller.
*/
-static __latent_entropy struct task_struct *copy_process(
+__latent_entropy struct task_struct *copy_process(
struct pid *pid,
int trace,
int node,