From 3cb7df7cb2b6e05128eb4f32538a243e47f1ccc6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 13 Sep 2012 10:58:25 +1000 Subject: [PATCH] slab: fix DEBUG==0 warning mm/slab.c:808: warning: '__slab_error' defined but not used Cc: Pekka Enberg Signed-off-by: Andrew Morton --- mm/slab.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/slab.c b/mm/slab.c index 0a6b5671dd96..a23b70ff38cb 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -803,6 +803,7 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size, *left_over = slab_size - nr_objs*buffer_size - mgmt_size; } +#if DEBUG #define slab_error(cachep, msg) __slab_error(__func__, cachep, msg) static void __slab_error(const char *function, struct kmem_cache *cachep, @@ -812,6 +813,7 @@ static void __slab_error(const char *function, struct kmem_cache *cachep, function, cachep->name, msg); dump_stack(); } +#endif /* * By default on NUMA we use alien caches to stage the freeing of -- 2.39.5