switch sysfs_chmod_file() to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
d161a13f97
commit
48176a973d
3 changed files with 6 additions and 6 deletions
|
|
@ -133,7 +133,7 @@ int __must_check sysfs_create_file(struct kobject *kobj,
|
|||
int __must_check sysfs_create_files(struct kobject *kobj,
|
||||
const struct attribute **attr);
|
||||
int __must_check sysfs_chmod_file(struct kobject *kobj,
|
||||
const struct attribute *attr, mode_t mode);
|
||||
const struct attribute *attr, umode_t mode);
|
||||
void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
|
||||
void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
|
||||
|
||||
|
|
@ -221,7 +221,7 @@ static inline int sysfs_create_files(struct kobject *kobj,
|
|||
}
|
||||
|
||||
static inline int sysfs_chmod_file(struct kobject *kobj,
|
||||
const struct attribute *attr, mode_t mode)
|
||||
const struct attribute *attr, umode_t mode)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue