public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trivial, make set_special_pids() static
@ 2006-10-23 14:25 Oleg Nesterov
  0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2006-10-23 14:25 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

make set_special_pids() static, the only caller is daemonize().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>

--- rc2-mm2/include/linux/sched.h~ssp	2006-10-22 19:28:17.000000000 +0400
+++ rc2-mm2/include/linux/sched.h	2006-10-23 18:20:04.000000000 +0400
@@ -1280,7 +1280,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. */
--- rc2-mm2/kernel/exit.c~ssp	2006-10-22 19:28:17.000000000 +0400
+++ rc2-mm2/kernel/exit.c	2006-10-23 18:19:39.000000000 +0400
@@ -314,7 +314,7 @@ void __set_special_pids(pid_t session, p
 	}
 }
 
-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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-23 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-23 14:25 [PATCH] trivial, make set_special_pids() static Oleg Nesterov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox