From: Randy Dunlap <rdunlap@infradead.org>
To: Linux MM <linux-mm@kvack.org>
Cc: Pekka Enberg <penberg@kernel.org>,
Christoph Lameter <cl@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH 2/2] mm: fix slab.h endif comments
Date: Tue, 17 Sep 2013 11:35:43 -0700 [thread overview]
Message-ID: <5238A0FF.1040506@infradead.org> (raw)
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>
next reply other threads:[~2013-09-17 18:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 18:35 Randy Dunlap [this message]
2013-09-17 22:26 ` [PATCH 2/2] mm: fix slab.h endif comments Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5238A0FF.1040506@infradead.org \
--to=rdunlap@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=cl@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=penberg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).