Skip to content

Commit 2cd2e1a

Browse files
author
Christian Brauner
committed
m68k: switch to kernel_clone()
The old _do_fork() helper is removed in favor of the new kernel_clone() helper. The latter adheres to naming conventions for kernel internal syscall helpers. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Kars de Jong <jongk@linux-m68k.org> Cc: linux-m68k@lists.linux-m68k.org Link: https://lore.kernel.org/r/20200819104655.436656-5-christian.brauner@ubuntu.com
1 parent f8c40eb commit 2cd2e1a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎arch/m68k/kernel/process.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ void flush_thread(void)
107107
* on top of pt_regs, which means that sys_clone() arguments would be
108108
* buried. We could, of course, copy them, but it's too costly for no
109109
* good reason - generic clone() would have to copy them *again* for
110-
* _do_fork() anyway. So in this case it's actually better to pass pt_regs *
111-
* and extract arguments for _do_fork() from there. Eventually we might
112-
* go for calling _do_fork() directly from the wrapper, but only after we
113-
* are finished with _do_fork() prototype conversion.
110+
* kernel_clone() anyway. So in this case it's actually better to pass pt_regs *
111+
* and extract arguments for kernel_clone() from there. Eventually we might
112+
* go for calling kernel_clone() directly from the wrapper, but only after we
113+
* are finished with kernel_clone() prototype conversion.
114114
*/
115115
asmlinkage int m68k_clone(struct pt_regs *regs)
116116
{
@@ -125,7 +125,7 @@ asmlinkage int m68k_clone(struct pt_regs *regs)
125125
.tls = regs->d5,
126126
};
127127

128-
return _do_fork(&args);
128+
return kernel_clone(&args);
129129
}
130130

131131
/*

0 commit comments

Comments
 (0)