From: Adrian Bunk This patch makes some needlessly global code static. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- 25-akpm/kernel/signal.c | 2 -- 25-akpm/kernel/sys.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff -puN kernel/signal.c~kernel-sysc-make-some-code-static kernel/signal.c --- 25/kernel/signal.c~kernel-sysc-make-some-code-static 2005-01-25 21:23:28.598118592 -0800 +++ 25-akpm/kernel/signal.c 2005-01-25 21:23:28.607117224 -0800 @@ -30,8 +30,6 @@ #include #include -extern void k_getrusage(struct task_struct *, int, struct rusage *); - /* * SLAB caches for signal bits. */ diff -puN kernel/sys.c~kernel-sysc-make-some-code-static kernel/sys.c --- 25/kernel/sys.c~kernel-sysc-make-some-code-static 2005-01-25 21:23:28.600118288 -0800 +++ 25-akpm/kernel/sys.c 2005-01-25 21:23:28.609116920 -0800 @@ -92,7 +92,7 @@ int cad_pid = 1; */ static struct notifier_block *reboot_notifier_list; -DEFINE_RWLOCK(notifier_lock); +static DEFINE_RWLOCK(notifier_lock); /** * notifier_chain_register - Add notifier to a notifier chain @@ -1559,7 +1559,7 @@ asmlinkage long sys_setrlimit(unsigned i * given child after it's reaped, or none so this sample is before reaping. */ -void k_getrusage(struct task_struct *p, int who, struct rusage *r) +static void k_getrusage(struct task_struct *p, int who, struct rusage *r) { struct task_struct *t; unsigned long flags; _