All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wang Sheng-Hui <crosslonelyover@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>,
	kernel-janitors <kernel-janitors@vger.kernel.org>,
	viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org
Subject: [PATCH] clear code: add macro wrapper for header mbcache.h
Date: Fri, 16 Jul 2010 15:09:11 +0000	[thread overview]
Message-ID: <4C407617.6080002@gmail.com> (raw)

Hi,

In header file include/linux/mbcache.h, no macro wrapper defined.
I think it's better to add ifndef/define macro to wrap it.
Following patch is against 2.6.35-rc5. Please check it.


Signed-off-by: Wang Sheng-Hui <crosslonelyover@gmail.com>
---
 include/linux/mbcache.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/mbcache.h b/include/linux/mbcache.h
index a09b84e..3a6a802 100644
--- a/include/linux/mbcache.h
+++ b/include/linux/mbcache.h
@@ -3,6 +3,8 @@

   (C) 2001 by Andreas Gruenbacher, <a.gruenbacher@computer.org>
 */
+#ifndef __LINUX_MBCACHE_H
+#define __LINUX_MBCACHE_H

 /* Hardwire the number of additional indexes */
 #define MB_CACHE_INDEXES_COUNT 1
@@ -50,3 +52,5 @@ struct mb_cache_entry *mb_cache_entry_find_next(struct
mb_cache_entry *, int,
 						struct block_device *,
 						unsigned int);
 #endif
+
+#endif /* __LINUX_MBCACHE_H */
-- 
1.7.1.1


-- 
Thanks and Regards,
shenghui

WARNING: multiple messages have this Message-ID (diff)
From: Wang Sheng-Hui <crosslonelyover@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>,
	kernel-janitors <kernel-janitors@vger.kernel.org>,
	viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org
Subject: [PATCH] clear code: add macro wrapper for header mbcache.h
Date: Fri, 16 Jul 2010 23:09:11 +0800	[thread overview]
Message-ID: <4C407617.6080002@gmail.com> (raw)

Hi,

In header file include/linux/mbcache.h, no macro wrapper defined.
I think it's better to add ifndef/define macro to wrap it.
Following patch is against 2.6.35-rc5. Please check it.


Signed-off-by: Wang Sheng-Hui <crosslonelyover@gmail.com>
---
 include/linux/mbcache.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/mbcache.h b/include/linux/mbcache.h
index a09b84e..3a6a802 100644
--- a/include/linux/mbcache.h
+++ b/include/linux/mbcache.h
@@ -3,6 +3,8 @@

   (C) 2001 by Andreas Gruenbacher, <a.gruenbacher@computer.org>
 */
+#ifndef __LINUX_MBCACHE_H
+#define __LINUX_MBCACHE_H

 /* Hardwire the number of additional indexes */
 #define MB_CACHE_INDEXES_COUNT 1
@@ -50,3 +52,5 @@ struct mb_cache_entry *mb_cache_entry_find_next(struct
mb_cache_entry *, int,
 						struct block_device *,
 						unsigned int);
 #endif
+
+#endif /* __LINUX_MBCACHE_H */
-- 
1.7.1.1


-- 
Thanks and Regards,
shenghui

             reply	other threads:[~2010-07-16 15:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-16 15:09 Wang Sheng-Hui [this message]
2010-07-16 15:09 ` [PATCH] clear code: add macro wrapper for header mbcache.h Wang Sheng-Hui

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=4C407617.6080002@gmail.com \
    --to=crosslonelyover@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.