Skip to content

Commit

Permalink
mm/slub.c: make code static
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jul 17, 2007
1 parent 7b55f62 commit 5af328a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static enum {

/* 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.
Expand Down Expand Up @@ -3638,7 +3638,7 @@ static struct kset_uevent_ops slab_uevent_ops = {
.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

Expand Down Expand Up @@ -3736,7 +3736,7 @@ struct saved_alias {
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)
{
Expand Down

0 comments on commit 5af328a

Please sign in to comment.