From 368b938abcab4d4f78433d56dc0170cbf2c2e136 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Thu, 26 Jun 2014 10:42:25 +1000 Subject: [PATCH] SLOB has no node specific management structures. Do not provide the defintions for node management structures for SLOB. Signed-off-by: Christoph Lameter Reported-by: Wu Fengguang Signed-off-by: Andrew Morton --- mm/slab.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/slab.h b/mm/slab.h index 3cf6a35e7e9a..3f9766e393a3 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -262,7 +262,7 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) } #endif - +#ifndef CONFIG_SLOB /* * The slab lists for all objects. */ @@ -307,5 +307,7 @@ static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) for (__node = 0; __n = get_node(__s, __node), __node < nr_node_ids; __node++) \ if (__n) +#endif + void *slab_next(struct seq_file *m, void *p, loff_t *pos); void slab_stop(struct seq_file *m, void *p); -- 2.39.5