linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] kernel/sys.c: make some code static
@ 2004-12-12 20:01 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2004-12-12 20:01 UTC (permalink / raw)
  To: linux-kernel

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.
  */


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [2.6 patch] kernel/sys.c: make some code static
@ 2005-01-25  7:49 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-01-25  7:49 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

This patch makes some needlessly global code static.

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

---

 kernel/signal.c |    2 --
 kernel/sys.c    |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

This patch was already sent on:
- 12 Dec 2004

--- 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.
  */


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-25  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-12 20:01 [2.6 patch] kernel/sys.c: make some code static Adrian Bunk
2005-01-25  7:49 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).