linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-18 14:11 Andrey Ryabinin
  2014-06-18 14:26 ` Christoph Lameter
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andrey Ryabinin @ 2014-06-18 14:11 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Vladimir Davydov, Pekka Enberg, Christoph Lameter, linux-mm,
	linux-kernel, Andrey Ryabinin

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>
---
 mm/slab.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slab.h b/mm/slab.h
index 961a3fb..90954f5e 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -260,8 +260,6 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x)
 	WARN_ON_ONCE(1);
 	return s;
 }
-#endif
-
 
 /*
  * The slab lists for all objects.
@@ -296,3 +294,5 @@ struct kmem_cache_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 */
-- 
1.8.5.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-19 14:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-18 14:11 [PATCH] mm: slab.h: wrap the whole file with guarding macro Andrey Ryabinin
2014-06-18 14:26 ` Christoph Lameter
2014-06-18 20:22 ` David Rientjes
2014-06-19  7:29   ` Andrey Ryabinin
2014-06-19  9:13     ` David Rientjes
2014-06-19 14:37       ` Christoph Lameter
2014-06-19  7:17 ` Vladimir Davydov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).