public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] kernel/exit.c: make a function static
@ 2004-12-12 19:20 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2004-12-12 19:20 UTC (permalink / raw)
  To: linux-kernel

The patch below makes a needlessly global function static.


diffstat output:
 include/linux/sched.h |    1 -
 kernel/exit.c         |    4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc2-mm4-full/include/linux/sched.h.old	2004-12-12 02:48:14.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/include/linux/sched.h	2004-12-12 02:48:19.000000000 +0100
@@ -915,7 +915,6 @@
 extern void flush_thread(void);
 extern void exit_thread(void);
 
-extern void exit_mm(struct task_struct *);
 extern void exit_files(struct task_struct *);
 extern void exit_signal(struct task_struct *);
 extern void __exit_signal(struct task_struct *);
--- linux-2.6.10-rc2-mm4-full/kernel/exit.c.old	2004-12-12 02:48:26.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/kernel/exit.c	2004-12-12 02:48:47.000000000 +0100
@@ -39,6 +39,8 @@
 
 int getrusage(struct task_struct *, int, struct rusage __user *);
 
+static void exit_mm(struct task_struct *tsk);
+
 static void __unhash_process(struct task_struct *p)
 {
 	nr_threads--;
@@ -510,7 +512,7 @@
 	mmput(mm);
 }
 
-void exit_mm(struct task_struct *tsk)
+static void exit_mm(struct task_struct *tsk)
 {
 	__exit_mm(tsk);
 }


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

only message in thread, other threads:[~2004-12-12 19:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-12 19:20 [2.6 patch] kernel/exit.c: make a function static Adrian Bunk

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