diff options
Diffstat (limited to 'include/linux/sysfs.h')
| -rw-r--r-- | include/linux/sysfs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index dac0859e6440..0010009b2f00 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
| @@ -25,7 +25,7 @@ enum kobj_ns_type; | |||
| 25 | 25 | ||
| 26 | struct attribute { | 26 | struct attribute { |
| 27 | const char *name; | 27 | const char *name; |
| 28 | mode_t mode; | 28 | umode_t mode; |
| 29 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 29 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
| 30 | struct lock_class_key *key; | 30 | struct lock_class_key *key; |
| 31 | struct lock_class_key skey; | 31 | struct lock_class_key skey; |
| @@ -55,7 +55,7 @@ do { \ | |||
| 55 | 55 | ||
| 56 | struct attribute_group { | 56 | struct attribute_group { |
| 57 | const char *name; | 57 | const char *name; |
| 58 | mode_t (*is_visible)(struct kobject *, | 58 | umode_t (*is_visible)(struct kobject *, |
| 59 | struct attribute *, int); | 59 | struct attribute *, int); |
| 60 | struct attribute **attrs; | 60 | struct attribute **attrs; |
| 61 | }; | 61 | }; |
| @@ -133,7 +133,7 @@ int __must_check sysfs_create_file(struct kobject *kobj, | |||
| 133 | int __must_check sysfs_create_files(struct kobject *kobj, | 133 | int __must_check sysfs_create_files(struct kobject *kobj, |
| 134 | const struct attribute **attr); | 134 | const struct attribute **attr); |
| 135 | int __must_check sysfs_chmod_file(struct kobject *kobj, | 135 | int __must_check sysfs_chmod_file(struct kobject *kobj, |
| 136 | const struct attribute *attr, mode_t mode); | 136 | const struct attribute *attr, umode_t mode); |
| 137 | void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr); | 137 | void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr); |
| 138 | void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr); | 138 | void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr); |
| 139 | 139 | ||
| @@ -221,7 +221,7 @@ static inline int sysfs_create_files(struct kobject *kobj, | |||
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | static inline int sysfs_chmod_file(struct kobject *kobj, | 223 | static inline int sysfs_chmod_file(struct kobject *kobj, |
| 224 | const struct attribute *attr, mode_t mode) | 224 | const struct attribute *attr, umode_t mode) |
| 225 | { | 225 | { |
| 226 | return 0; | 226 | return 0; |
| 227 | } | 227 | } |
