From: Andrew Morton Date: Thu, 13 Sep 2012 00:58:25 +0000 (+1000) Subject: slab: fix DEBUG==0 warning X-Git-Tag: next-20120917~4^2~240 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3cb7df7cb2b6e05128eb4f32538a243e47f1ccc6;p=karo-tx-linux.git slab: fix DEBUG==0 warning mm/slab.c:808: warning: '__slab_error' defined but not used Cc: Pekka Enberg Signed-off-by: Andrew Morton --- 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