aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2011-01-11 18:49:32 -0500
committerPekka Enberg <penberg@kernel.org>2011-01-15 06:28:36 -0500
commit68a1b1955957e222d890f550d2a44ae598db3de9 (patch)
tree809e8420b4c54da4d179fa69aacc269020e486ec
parent597fb188cbee2d371246e1669bbc6051bb666aa9 (diff)
mm/slab.c: make local symbols static
Local symbols should be static. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Christoph Lameter <cl@linux-foundation.org> Cc: Pekka Enberg <penberg@cs.helsinki.fi> Cc: Matt Mackall <mpm@selenic.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--mm/slab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 264037449f08..37961d1f584f 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -284,7 +284,7 @@ struct kmem_list3 {
284 * Need this for bootstrapping a per node allocator. 284 * Need this for bootstrapping a per node allocator.
285 */ 285 */
286#define NUM_INIT_LISTS (3 * MAX_NUMNODES) 286#define NUM_INIT_LISTS (3 * MAX_NUMNODES)
287struct kmem_list3 __initdata initkmem_list3[NUM_INIT_LISTS]; 287static struct kmem_list3 __initdata initkmem_list3[NUM_INIT_LISTS];
288#define CACHE_CACHE 0 288#define CACHE_CACHE 0
289#define SIZE_AC MAX_NUMNODES 289#define SIZE_AC MAX_NUMNODES
290#define SIZE_L3 (2 * MAX_NUMNODES) 290#define SIZE_L3 (2 * MAX_NUMNODES)
@@ -4053,7 +4053,7 @@ static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp)
4053 * necessary. Note that the l3 listlock also protects the array_cache 4053 * necessary. Note that the l3 listlock also protects the array_cache
4054 * if drain_array() is used on the shared array. 4054 * if drain_array() is used on the shared array.
4055 */ 4055 */
4056void drain_array(struct kmem_cache *cachep, struct kmem_list3 *l3, 4056static void drain_array(struct kmem_cache *cachep, struct kmem_list3 *l3,
4057 struct array_cache *ac, int force, int node) 4057 struct array_cache *ac, int force, int node)
4058{ 4058{
4059 int tofree; 4059 int tofree;
@@ -4317,7 +4317,7 @@ static const struct seq_operations slabinfo_op = {
4317 * @count: data length 4317 * @count: data length
4318 * @ppos: unused 4318 * @ppos: unused
4319 */ 4319 */
4320ssize_t slabinfo_write(struct file *file, const char __user * buffer, 4320static ssize_t slabinfo_write(struct file *file, const char __user *buffer,
4321 size_t count, loff_t *ppos) 4321 size_t count, loff_t *ppos)
4322{ 4322{
4323 char kbuf[MAX_SLABINFO_WRITE + 1], *tmp; 4323 char kbuf[MAX_SLABINFO_WRITE + 1], *tmp;