Skip to content

Commit 29d434b

Browse files
htejunszmi
authored andcommitted
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>
1 parent 37194d0 commit 29d434b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

fs/fuse/fuse_i.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
See the file COPYING.
77
*/
88

9+
#ifndef _FS_FUSE_I_H
10+
#define _FS_FUSE_I_H
11+
912
#include <linux/fuse.h>
1013
#include <linux/fs.h>
1114
#include <linux/mount.h>
@@ -655,3 +658,5 @@ void fuse_set_nowrite(struct inode *inode);
655658
void fuse_release_nowrite(struct inode *inode);
656659

657660
u64 fuse_get_attr_version(struct fuse_conn *fc);
661+
662+
#endif /* _FS_FUSE_I_H */

include/linux/fuse.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* - add file flags field to fuse_read_in and fuse_write_in
2020
*/
2121

22+
#ifndef _LINUX_FUSE_H
23+
#define _LINUX_FUSE_H
24+
2225
#include <asm/types.h>
2326
#include <linux/major.h>
2427

@@ -409,3 +412,5 @@ struct fuse_dirent {
409412
#define FUSE_DIRENT_ALIGN(x) (((x) + sizeof(__u64) - 1) & ~(sizeof(__u64) - 1))
410413
#define FUSE_DIRENT_SIZE(d) \
411414
FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen)
415+
416+
#endif /* _LINUX_FUSE_H */

0 commit comments

Comments
 (0)