Making fs/minix/minix.h double including safe
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Mon, 22 Jun 2009 02:11:20 +0000 (11:11 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 22 Jun 2009 18:34:42 +0000 (11:34 -0700)
I happened to find that fs/minix/minix.h doesn't guard double include.

Yes, I know this never cause something destructive because this is
self-evidence that no source file includes minix.h twice, but I think
fixing this is better than disregarding it.

Signed-off-by: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/minix/minix.h

index cb7fdd1..9dcf95b 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef FS_MINIX_H
+#define FS_MINIX_H
+
 #include <linux/fs.h>
 #include <linux/pagemap.h>
 #include <linux/minix_fs.h>
@@ -86,3 +89,5 @@ static inline struct minix_inode_info *minix_i(struct inode *inode)
 {
        return list_entry(inode, struct minix_inode_info, vfs_inode);
 }
+
+#endif /* FS_MINIX_H */