linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clear code: add macro wrapper for header mbcache.h
@ 2010-07-16 15:09 Wang Sheng-Hui
  0 siblings, 0 replies; only message in thread
From: Wang Sheng-Hui @ 2010-07-16 15:09 UTC (permalink / raw)
  To: linux-kernel, kernel-janitors, viro, linux-fsdevel

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-16 15:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-16 15:09 [PATCH] clear code: add macro wrapper for header mbcache.h Wang Sheng-Hui

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