diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2017-05-05 13:45:14 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-07-21 10:43:12 -0500 |
commit | 1fb53567a3633740aac8761eb7023dc5671f0edb (patch) | |
tree | 4d3dd286e1490f5cb837f28c55b7121d557a277f /kernel/exit.c | |
parent | 2896b0f09f2617f953b8038978106cc4cbb4c52b (diff) | |
download | linux-1fb53567a3633740aac8761eb7023dc5671f0edb.tar.gz |
pids: Move task_pid_type into sched/signal.h
The function is general and inline so there is no need
to hide it inside of exit.c
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index c3c7ac560114..16432428fc6c 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -1001,14 +1001,6 @@ struct wait_opts { int notask_error; }; -static inline -struct pid *task_pid_type(struct task_struct *task, enum pid_type type) -{ - if (type != PIDTYPE_PID) - task = task->group_leader; - return task->pids[type].pid; -} - static int eligible_pid(struct wait_opts *wo, struct task_struct *p) { return wo->wo_type == PIDTYPE_MAX || |