aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.h
diff options
context:
space:
mode:
authorAndrey Ryabinin <a.ryabinin@samsung.com>2014-08-06 19:04:14 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 21:01:14 -0400
commit5240ab4076bd3815473f2f2991741acc698f8b58 (patch)
tree91f568f8f5da309b5d4b339fcc14780ad1b9c9d0 /mm/slab.h
parent18bf854117c6caa4d0083bd42411895163467cb9 (diff)
mm: slab.h: wrap the whole file with guarding macro
Guarding section: #ifndef MM_SLAB_H #define MM_SLAB_H ... #endif currently doesn't cover the whole mm/slab.h. It seems like it was done unintentionally. Wrap the whole file by moving closing #endif to the end of it. Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com> Acked-by: Christoph Lameter <cl@linux.com> Acked-by: David Rientjes <rientjes@google.com> Reviewed-by: Vladimir Davydov <vdavydov@parallels.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.h')
-rw-r--r--mm/slab.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slab.h b/mm/slab.h
index 3f9766e393a3..3822b65edcc2 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -260,7 +260,6 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x)
260 WARN_ON_ONCE(1); 260 WARN_ON_ONCE(1);
261 return s; 261 return s;
262} 262}
263#endif
264 263
265#ifndef CONFIG_SLOB 264#ifndef CONFIG_SLOB
266/* 265/*
@@ -311,3 +310,5 @@ static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node)
311 310
312void *slab_next(struct seq_file *m, void *p, loff_t *pos); 311void *slab_next(struct seq_file *m, void *p, loff_t *pos);
313void slab_stop(struct seq_file *m, void *p); 312void slab_stop(struct seq_file *m, void *p);
313
314#endif /* MM_SLAB_H */