diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2006-12-08 05:36:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:38 -0500 |
commit | ae424ae4b5bcd820ad6ee6f0b986c4e14ed4d6cf (patch) | |
tree | ef8bc16fc2415b50154135e3b23f8e34b9d75c86 | |
parent | 7bcfa95e561f11a17720162935e4f704c5d6fda3 (diff) |
[PATCH] make set_special_pids() static
Make set_special_pids() static, the only caller is daemonize().
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | kernel/exit.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index dede82c63445..5e8a0ba61749 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1240,7 +1240,6 @@ extern struct mm_struct init_mm; | |||
1240 | 1240 | ||
1241 | #define find_task_by_pid(nr) find_task_by_pid_type(PIDTYPE_PID, nr) | 1241 | #define find_task_by_pid(nr) find_task_by_pid_type(PIDTYPE_PID, nr) |
1242 | extern struct task_struct *find_task_by_pid_type(int type, int pid); | 1242 | extern struct task_struct *find_task_by_pid_type(int type, int pid); |
1243 | extern void set_special_pids(pid_t session, pid_t pgrp); | ||
1244 | extern void __set_special_pids(pid_t session, pid_t pgrp); | 1243 | extern void __set_special_pids(pid_t session, pid_t pgrp); |
1245 | 1244 | ||
1246 | /* per-UID process charging. */ | 1245 | /* per-UID process charging. */ |
diff --git a/kernel/exit.c b/kernel/exit.c index fa235779b6a3..fa0495e167e9 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -314,7 +314,7 @@ void __set_special_pids(pid_t session, pid_t pgrp) | |||
314 | } | 314 | } |
315 | } | 315 | } |
316 | 316 | ||
317 | void set_special_pids(pid_t session, pid_t pgrp) | 317 | static void set_special_pids(pid_t session, pid_t pgrp) |
318 | { | 318 | { |
319 | write_lock_irq(&tasklist_lock); | 319 | write_lock_irq(&tasklist_lock); |
320 | __set_special_pids(session, pgrp); | 320 | __set_special_pids(session, pgrp); |