]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] make set_special_pids() static
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 8 Dec 2006 10:36:08 +0000 (02:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:28:38 +0000 (08:28 -0800)
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>
include/linux/sched.h
kernel/exit.c

index dede82c6344547edfa18bd60601a17ce2740f114..5e8a0ba617493fb3eafeb828b2eb31366871566e 100644 (file)
@@ -1240,7 +1240,6 @@ extern struct   mm_struct init_mm;
 
 #define find_task_by_pid(nr)   find_task_by_pid_type(PIDTYPE_PID, nr)
 extern struct task_struct *find_task_by_pid_type(int type, int pid);
-extern void set_special_pids(pid_t session, pid_t pgrp);
 extern void __set_special_pids(pid_t session, pid_t pgrp);
 
 /* per-UID process charging. */
index fa235779b6a3f55aa354b9684125c506ce9327db..fa0495e167e9f2ec40ea84d54df9dc9ac545cd3a 100644 (file)
@@ -314,7 +314,7 @@ void __set_special_pids(pid_t session, pid_t pgrp)
        }
 }
 
-void set_special_pids(pid_t session, pid_t pgrp)
+static void set_special_pids(pid_t session, pid_t pgrp)
 {
        write_lock_irq(&tasklist_lock);
        __set_special_pids(session, pgrp);