Skip to content

Commit

Permalink
Making fs/minix/minix.h double including safe
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Hitoshi Mitake authored and torvalds committed Jun 22, 2009
1 parent 44da59e commit e38be99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fs/minix/minix.h
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -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 */

0 comments on commit e38be99

Please sign in to comment.