Commit fdaa45e9 authored by Ingo Molnar's avatar Ingo Molnar Committed by Pekka Enberg

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: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 0cb583fd
...@@ -1071,6 +1071,8 @@ static inline unsigned long kmem_cache_flags(unsigned long objsize, ...@@ -1071,6 +1071,8 @@ static inline unsigned long kmem_cache_flags(unsigned long objsize,
} }
#define slub_debug 0 #define slub_debug 0
#define disable_higher_order_debug 0
static inline unsigned long slabs_node(struct kmem_cache *s, int node) static inline unsigned long slabs_node(struct kmem_cache *s, int node)
{ return 0; } { return 0; }
static inline unsigned long node_nr_slabs(struct kmem_cache_node *n) static inline unsigned long node_nr_slabs(struct kmem_cache_node *n)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment