Messages in this thread Patch in this message | | | Date | Sun, 12 Dec 2004 21:01:14 +0100 | From | Adrian Bunk <> | Subject | [2.6 patch] kernel/sys.c: make some code static |
| |
The patch below makes some needlessly global code static.
diffstat output: kernel/signal.c | 2 -- kernel/sys.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc2-mm4-full/kernel/sys.c.old 2004-12-12 03:18:40.000000000 +0100 +++ linux-2.6.10-rc2-mm4-full/kernel/sys.c 2004-12-12 03:19:19.000000000 +0100 @@ -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; --- linux-2.6.10-rc2-mm4-full/kernel/signal.c.old 2004-12-12 03:18:25.000000000 +0100 +++ linux-2.6.10-rc2-mm4-full/kernel/signal.c 2004-12-12 03:18:32.000000000 +0100 @@ -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. */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |