tree 3e58ca796d70c7867bb2acd6fbe239f671decd78
parent 2f4cfacecd522849dac254f87273525eeca33d1d
author Coywolf Qi Hunt <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:01 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:01 -0700

[PATCH] reparent_to_init cleanup

This patch hides reparent_to_init().  reparent_to_init() should only be
called by daemonize().

Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 i386/mach-voyager/voyager_thread.c |    1 -
 linux/sched.h                      |    1 -
 exit.c                             |    2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

Index: arch/i386/mach-voyager/voyager_thread.c
===================================================================
--- 
0f8d4009c397ac3058e0247ff31f4fa608dc3d56/arch/i386/mach-voyager/voyager_thread.c
  (mode:100644 sha1:9980eef31fda891fd6d290e5d41a30830f6001a5)
+++ 
3e58ca796d70c7867bb2acd6fbe239f671decd78/arch/i386/mach-voyager/voyager_thread.c
  (mode:100644 sha1:a9341b0eebffa396199db1b268707b6ba893b782)
@@ -126,7 +126,6 @@
 
        kvoyagerd_running = 1;
 
-       reparent_to_init();
        daemonize(THREAD_NAME);
 
        set_timeout = 0;
Index: include/linux/sched.h
===================================================================
--- 0f8d4009c397ac3058e0247ff31f4fa608dc3d56/include/linux/sched.h  
(mode:100644 sha1:a30e91f40da6740f791a89989e2edb44e18ed5b2)
+++ 3e58ca796d70c7867bb2acd6fbe239f671decd78/include/linux/sched.h  
(mode:100644 sha1:1cced971232c6fae4cbfd5148d491a7e75caf01f)
@@ -1021,7 +1021,6 @@
 
 extern NORET_TYPE void do_group_exit(int);
 
-extern void reparent_to_init(void);
 extern void daemonize(const char *, ...);
 extern int allow_signal(int);
 extern int disallow_signal(int);
Index: kernel/exit.c
===================================================================
--- 0f8d4009c397ac3058e0247ff31f4fa608dc3d56/kernel/exit.c  (mode:100644 
sha1:6dd4ebe1dd9034f014dd65ea3ed767bcf5760823)
+++ 3e58ca796d70c7867bb2acd6fbe239f671decd78/kernel/exit.c  (mode:100644 
sha1:39d35935b3718a6a8161ea6043692168f81f127e)
@@ -220,7 +220,7 @@
  *
  * NOTE that reparent_to_init() gives the caller full capabilities.
  */
-void reparent_to_init(void)
+static inline void reparent_to_init(void)
 {
        write_lock_irq(&tasklist_lock);
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to