diff options
-rw-r--r-- | Documentation/filesystems/sysfs.txt | 2 | ||||
-rw-r--r-- | fs/sysfs/file.c | 2 | ||||
-rw-r--r-- | fs/sysfs/inode.c | 2 | ||||
-rw-r--r-- | fs/sysfs/sysfs.h | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt index 07235caec22c..a6619b7064b9 100644 --- a/Documentation/filesystems/sysfs.txt +++ b/Documentation/filesystems/sysfs.txt | |||
@@ -70,7 +70,7 @@ An attribute definition is simply: | |||
70 | struct attribute { | 70 | struct attribute { |
71 | char * name; | 71 | char * name; |
72 | struct module *owner; | 72 | struct module *owner; |
73 | mode_t mode; | 73 | umode_t mode; |
74 | }; | 74 | }; |
75 | 75 | ||
76 | 76 | ||
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 120c3adff6b0..62f4fb37789e 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c | |||
@@ -518,7 +518,7 @@ out: | |||
518 | } | 518 | } |
519 | 519 | ||
520 | int sysfs_add_file_mode(struct sysfs_dirent *dir_sd, | 520 | int sysfs_add_file_mode(struct sysfs_dirent *dir_sd, |
521 | const struct attribute *attr, int type, mode_t amode) | 521 | const struct attribute *attr, int type, umode_t amode) |
522 | { | 522 | { |
523 | umode_t mode = (amode & S_IALLUGO) | S_IFREG; | 523 | umode_t mode = (amode & S_IALLUGO) | S_IFREG; |
524 | struct sysfs_addrm_cxt acxt; | 524 | struct sysfs_addrm_cxt acxt; |
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index c81b22f3ace1..4a802b4a9056 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -187,7 +187,7 @@ out: | |||
187 | return error; | 187 | return error; |
188 | } | 188 | } |
189 | 189 | ||
190 | static inline void set_default_inode_attr(struct inode * inode, mode_t mode) | 190 | static inline void set_default_inode_attr(struct inode * inode, umode_t mode) |
191 | { | 191 | { |
192 | inode->i_mode = mode; | 192 | inode->i_mode = mode; |
193 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 193 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index ce29e28b766d..7484a36ee678 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -79,7 +79,7 @@ struct sysfs_dirent { | |||
79 | }; | 79 | }; |
80 | 80 | ||
81 | unsigned int s_flags; | 81 | unsigned int s_flags; |
82 | unsigned short s_mode; | 82 | umode_t s_mode; |
83 | ino_t s_ino; | 83 | ino_t s_ino; |
84 | struct sysfs_inode_attrs *s_iattr; | 84 | struct sysfs_inode_attrs *s_iattr; |
85 | }; | 85 | }; |
@@ -229,7 +229,7 @@ int sysfs_add_file(struct sysfs_dirent *dir_sd, | |||
229 | const struct attribute *attr, int type); | 229 | const struct attribute *attr, int type); |
230 | 230 | ||
231 | int sysfs_add_file_mode(struct sysfs_dirent *dir_sd, | 231 | int sysfs_add_file_mode(struct sysfs_dirent *dir_sd, |
232 | const struct attribute *attr, int type, mode_t amode); | 232 | const struct attribute *attr, int type, umode_t amode); |
233 | /* | 233 | /* |
234 | * bin.c | 234 | * bin.c |
235 | */ | 235 | */ |