aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-15 05:00:26 -0400
committerPekka Enberg <penberg@cs.helsinki.fi>2009-09-15 15:32:10 -0400
commitfdaa45e95d2ef59a140d2fb2e487141f83f5a07c (patch)
tree262f543514ab9366de694fc66f65533fd242a37e /mm
parent0cb583fd2862f19ea88b02eb307d11c09e51e2f8 (diff)
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 <mingo@elte.hu> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'mm')
-rw-r--r--mm/slub.c2
1 files changed, 2 insertions, 0 deletions
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,
1071} 1071}
1072#define slub_debug 0 1072#define slub_debug 0
1073 1073
1074#define disable_higher_order_debug 0
1075
1074static inline unsigned long slabs_node(struct kmem_cache *s, int node) 1076static inline unsigned long slabs_node(struct kmem_cache *s, int node)
1075 { return 0; } 1077 { return 0; }
1076static inline unsigned long node_nr_slabs(struct kmem_cache_node *n) 1078static inline unsigned long node_nr_slabs(struct kmem_cache_node *n)