diff options
| author | Tejun Heo <tj@kernel.org> | 2008-10-16 10:08:57 -0400 |
|---|---|---|
| committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-10-16 10:08:57 -0400 |
| commit | 29d434b39c807320fbe4bcdce0ab98a0b9fcb285 (patch) | |
| tree | abb2db88d67449332dbc209a6e3724a3412f6a9c | |
| parent | 37194d0723b9b68b4b299b2564ca99e3d0a094c3 (diff) | |
fuse: add include protectors
Add include protectors to include/linux/fuse.h and fs/fuse/fuse_i.h.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
| -rw-r--r-- | fs/fuse/fuse_i.h | 5 | ||||
| -rw-r--r-- | include/linux/fuse.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 3a876076bdd1..35accfdd747f 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
| @@ -6,6 +6,9 @@ | |||
| 6 | See the file COPYING. | 6 | See the file COPYING. |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #ifndef _FS_FUSE_I_H | ||
| 10 | #define _FS_FUSE_I_H | ||
| 11 | |||
| 9 | #include <linux/fuse.h> | 12 | #include <linux/fuse.h> |
| 10 | #include <linux/fs.h> | 13 | #include <linux/fs.h> |
| 11 | #include <linux/mount.h> | 14 | #include <linux/mount.h> |
| @@ -655,3 +658,5 @@ void fuse_set_nowrite(struct inode *inode); | |||
| 655 | void fuse_release_nowrite(struct inode *inode); | 658 | void fuse_release_nowrite(struct inode *inode); |
| 656 | 659 | ||
| 657 | u64 fuse_get_attr_version(struct fuse_conn *fc); | 660 | u64 fuse_get_attr_version(struct fuse_conn *fc); |
| 661 | |||
| 662 | #endif /* _FS_FUSE_I_H */ | ||
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 265635dc9908..8bc1101e9b35 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
| @@ -19,6 +19,9 @@ | |||
| 19 | * - add file flags field to fuse_read_in and fuse_write_in | 19 | * - add file flags field to fuse_read_in and fuse_write_in |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef _LINUX_FUSE_H | ||
| 23 | #define _LINUX_FUSE_H | ||
| 24 | |||
| 22 | #include <asm/types.h> | 25 | #include <asm/types.h> |
| 23 | #include <linux/major.h> | 26 | #include <linux/major.h> |
| 24 | 27 | ||
| @@ -409,3 +412,5 @@ struct fuse_dirent { | |||
| 409 | #define FUSE_DIRENT_ALIGN(x) (((x) + sizeof(__u64) - 1) & ~(sizeof(__u64) - 1)) | 412 | #define FUSE_DIRENT_ALIGN(x) (((x) + sizeof(__u64) - 1) & ~(sizeof(__u64) - 1)) |
| 410 | #define FUSE_DIRENT_SIZE(d) \ | 413 | #define FUSE_DIRENT_SIZE(d) \ |
| 411 | FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen) | 414 | FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen) |
| 415 | |||
| 416 | #endif /* _LINUX_FUSE_H */ | ||
