mm/slub.c: make code static
Subsystems (2)
PATCH 1/1 mm/slub.c: make code static
This patch makes some needlessly global code static.
Signed-off-by Adrian Bunk <[email protected]>
---
mm/slub.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/slub.c renamed from mm/slub.c.old +3 -3
@@ -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) {
Quoted 3 lines · Adrian Bunk
This patch makes some needlessly global code static.
Signed-off-by Adrian Bunk <[email protected]>