linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] mm: fix slab.h endif comments
@ 2013-09-17 18:35 Randy Dunlap
  2013-09-17 22:26 ` Christoph Lameter
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2013-09-17 18:35 UTC (permalink / raw)
  To: Linux MM; +Cc: Pekka Enberg, Christoph Lameter, Andrew Morton

From: Randy Dunlap <rdunlap@infradead.org>

Add comments to several #endif lines to match most of the rest
of the file (except for short, easily visible blocks).

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
 include/linux/slab.h |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

--- lnx-312-rc1.orig/include/linux/slab.h
+++ lnx-312-rc1/include/linux/slab.h
@@ -194,7 +194,7 @@ struct kmem_cache {
 #ifndef KMALLOC_SHIFT_LOW
 #define KMALLOC_SHIFT_LOW	5
 #endif
-#endif
+#endif /* CONFIG_SLAB */
 
 #ifdef CONFIG_SLUB
 /*
@@ -206,7 +206,7 @@ struct kmem_cache {
 #ifndef KMALLOC_SHIFT_LOW
 #define KMALLOC_SHIFT_LOW	3
 #endif
-#endif
+#endif /* CONFIG_SLUB */
 
 #ifdef CONFIG_SLOB
 /*
@@ -219,7 +219,7 @@ struct kmem_cache {
 #ifndef KMALLOC_SHIFT_LOW
 #define KMALLOC_SHIFT_LOW	3
 #endif
-#endif
+#endif /* CONFIG_SLOB */
 
 /* Maximum allocatable size */
 #define KMALLOC_MAX_SIZE	(1UL << KMALLOC_SHIFT_MAX)
@@ -308,7 +308,7 @@ static __always_inline void *kmem_cache_
 {
 	return kmem_cache_alloc(s, flags);
 }
-#endif
+#endif /* CONFIG_NUMA */
 
 #ifdef CONFIG_TRACING
 extern void *kmem_cache_alloc_trace(struct kmem_cache *, gfp_t, size_t);
@@ -580,7 +580,7 @@ extern void *__kmalloc_track_caller(size
 #else
 #define kmalloc_track_caller(size, flags) \
 	__kmalloc(size, flags)
-#endif /* DEBUG_SLAB */
+#endif /* DEBUG_SLAB etc. */
 
 #ifdef CONFIG_NUMA
 /*

--
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	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/2] mm: fix slab.h endif comments
  2013-09-17 18:35 [PATCH 2/2] mm: fix slab.h endif comments Randy Dunlap
@ 2013-09-17 22:26 ` Christoph Lameter
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2013-09-17 22:26 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Linux MM, Pekka Enberg, Andrew Morton

On Tue, 17 Sep 2013, Randy Dunlap wrote:

> Add comments to several #endif lines to match most of the rest
> of the file (except for short, easily visible blocks).

Acked-by: Christoph Lameter <cl@linux.com>

--
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	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-17 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 18:35 [PATCH 2/2] mm: fix slab.h endif comments Randy Dunlap
2013-09-17 22:26 ` Christoph Lameter

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).