Skip to contentSkip to conversation

mm: fix slab.h endif comments

PATCH In review Randy Dunlap 2 participants 2 messages Sep 17, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 mm: fix slab.h endif comments

From: Randy Dunlap <[email protected]>

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

---
 include/linux/slab.h |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
include/linux/slab.h +5 -5
@@ -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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>