From: Andrey Ryabinin Date: Wed, 6 Aug 2014 23:04:14 +0000 (-0700) Subject: mm: slab.h: wrap the whole file with guarding macro X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5240ab4076bd3815473f2f2991741acc698f8b58;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Christoph Lameter Acked-by: David Rientjes Reviewed-by: Vladimir Davydov Cc: Pekka Enberg Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) WARN_ON_ONCE(1); return s; } -#endif #ifndef CONFIG_SLOB /* @@ -311,3 +310,5 @@ static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) void *slab_next(struct seq_file *m, void *p, loff_t *pos); void slab_stop(struct seq_file *m, void *p); + +#endif /* MM_SLAB_H */