kernel/sys.c: make some code static
PATCH 1/1 kernel/sys.c: make some code static
This patch makes some needlessly global code static.
Signed-off-by Adrian Bunk <[email protected]>
---
kernel/signal.c | 2 -- kernel/sys.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)
This patch was already sent on:
- 12 Dec 2004
kernel/sys.c renamed from kernel/sys.c.old +2 -2
@@ -90,7 +90,7 @@*/ 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
@@ -1544,7 +1544,7 @@* 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;
kernel/signal.c renamed from kernel/signal.c.old +0 -2
@@ -27,8 +27,6 @@#include <asm/unistd.h> #include <asm/siginfo.h> -extern void k_getrusage (struct task_struct *,int ,struct rusage *); -/* * SLAB caches for signal bits. */