public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] mm/slub.c: make code static
@ 2007-07-01 20:23 Adrian Bunk
  2007-07-03 15:49 ` Christoph Lameter
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2007-07-01 20:23 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux-kernel

This patch makes some needlessly global code static.

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

---

 mm/slub.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.22-rc6-mm1/mm/slub.c.old	2007-07-01 00:34:07.000000000 +0200
+++ linux-2.6.22-rc6-mm1/mm/slub.c	2007-07-01 00:35:26.000000000 +0200
@@ -240,7 +240,7 @@
 
 /* A list of all slab caches on the system */
 static DECLARE_RWSEM(slub_lock);
-LIST_HEAD(slab_caches);
+static LIST_HEAD(slab_caches);
 
 /*
  * Tracking user of a slab.
@@ -3658,7 +3658,7 @@
 	.filter = uevent_filter,
 };
 
-decl_subsys(slab, &slab_ktype, &slab_uevent_ops);
+static decl_subsys(slab, &slab_ktype, &slab_uevent_ops);
 
 #define ID_STR_LENGTH 64
 
@@ -3756,7 +3756,7 @@
 	struct saved_alias *next;
 };
 
-struct saved_alias *alias_list;
+static struct saved_alias *alias_list;
 
 static int sysfs_slab_alias(struct kmem_cache *s, const char *name)
 {


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

* Re: [2.6 patch] mm/slub.c: make code static
  2007-07-01 20:23 [2.6 patch] mm/slub.c: make code static Adrian Bunk
@ 2007-07-03 15:49 ` Christoph Lameter
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2007-07-03 15:49 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Sun, 1 Jul 2007, Adrian Bunk wrote:

> This patch makes some needlessly global code static.
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>

Acked-by: Christoph Lameter <clameter@sgi.com>


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

end of thread, other threads:[~2007-07-03 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-01 20:23 [2.6 patch] mm/slub.c: make code static Adrian Bunk
2007-07-03 15:49 ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox