Thread (18 messages) 18 messages, 4 authors, 2020-08-19
STALE2120d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 11/11] sched: remove _do_fork()

From: Christian Brauner <hidden>
Date: 2020-08-18 17:35:38
Also in: linux-arch, linux-kselftest, linux-m68k, lkml, sparclinux
Subsystem: the rest · Maintainer: Linus Torvalds

Now that all callers of _do_fork() have been switched to kernel_clone() remove
the _do_fork() helper.

Signed-off-by: Christian Brauner <redacted>
---
 include/linux/sched/task.h | 4 ----
 1 file changed, 4 deletions(-)
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index d9ef07359c96..44a798bf21b4 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -84,10 +84,6 @@ extern void exit_files(struct task_struct *);
 extern void exit_itimers(struct signal_struct *);
 
 extern int kernel_clone(struct kernel_clone_args *kargs);
-static inline long _do_fork(struct kernel_clone_args *kargs)
-{
-	return kernel_clone(kargs);
-}
 struct task_struct *fork_idle(int);
 struct mm_struct *copy_init_mm(void);
 extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
-- 
2.28.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help