[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061023142554.GA2246@oleg>
Date: Mon, 23 Oct 2006 18:25:54 +0400
From: Oleg Nesterov <oleg@...sign.ru>
To: Andrew Morton <akpm@...l.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] trivial, make set_special_pids() static
make set_special_pids() static, the only caller is daemonize().
Signed-off-by: Oleg Nesterov <oleg@...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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists