Skip to contentSkip to conversation

clear code: add macro wrapper for header mbcache.h

PATCH New Wang Sheng-Hui 1 participant 1 message Jul 16, 2010

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

PATCH 1/1 clear code: add macro wrapper for header mbcache.h

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.

---
 include/linux/mbcache.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
include/linux/mbcache.h +2 -0
index a09b84e..3a6a802 100644
@@ -3,6 +3,8 @@
 
   (C) 2001 by Andreas Gruenbacher, <[email protected]>
 */
+#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 */

Signature · 6 lines
1.7.1.1


-- 
Thanks and Regards,
shenghui