|
@@ -136,8 +136,8 @@ int __must_check sysfs_create_file(struct kobject *kobj,
|
|
const struct attribute *attr);
|
|
const struct attribute *attr);
|
|
int __must_check sysfs_create_files(struct kobject *kobj,
|
|
int __must_check sysfs_create_files(struct kobject *kobj,
|
|
const struct attribute **attr);
|
|
const struct attribute **attr);
|
|
-int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
|
|
|
|
- mode_t mode);
|
|
|
|
|
|
+int __must_check sysfs_chmod_file(struct kobject *kobj,
|
|
|
|
+ const struct attribute *attr, mode_t mode);
|
|
void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
|
|
void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
|
|
void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
|
|
void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
|
|
|
|
|
|
@@ -225,7 +225,7 @@ static inline int sysfs_create_files(struct kobject *kobj,
|
|
}
|
|
}
|
|
|
|
|
|
static inline int sysfs_chmod_file(struct kobject *kobj,
|
|
static inline int sysfs_chmod_file(struct kobject *kobj,
|
|
- struct attribute *attr, mode_t mode)
|
|
|
|
|
|
+ const struct attribute *attr, mode_t mode)
|
|
{
|
|
{
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|