Skip to contentSkip to conversation

kernel/exit.c: make a function static

PATCH New Adrian Bunk 1 participant 1 message Dec 12, 2004 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/exit.c: make a function static

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(-)
include/linux/sched.h renamed from include/linux/sched.h.old +0 -1
@@ -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 *);
kernel/exit.c renamed from kernel/exit.c.old +3 -1
@@ -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);
 }