From: Ingo Molnar Date: Tue, 15 Sep 2009 09:00:26 +0000 (+0200) Subject: slub: Fix build error in kmem_cache_open() with !CONFIG_SLUB_DEBUG X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fdaa45e95d2ef59a140d2fb2e487141f83f5a07c;p=linux-beck.git slub: Fix build error in kmem_cache_open() with !CONFIG_SLUB_DEBUG This build bug: mm/slub.c: In function 'kmem_cache_open': mm/slub.c:2476: error: 'disable_higher_order_debug' undeclared (first use in this function) mm/slub.c:2476: error: (Each undeclared identifier is reported only once mm/slub.c:2476: error: for each function it appears in.) Triggers because there's no !CONFIG_SLUB_DEBUG definition for disable_higher_order_debug. Signed-off-by: Ingo Molnar Signed-off-by: Pekka Enberg --- diff --git a/mm/slub.c b/mm/slub.c index a5789b91d179..0a216aae227e 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1071,6 +1071,8 @@ static inline unsigned long kmem_cache_flags(unsigned long objsize, } #define slub_debug 0 +#define disable_higher_order_debug 0 + static inline unsigned long slabs_node(struct kmem_cache *s, int node) { return 0; } static inline unsigned long node_nr_slabs(struct kmem_cache_node *n)