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 987cefa337de..786816cf4aa5 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -234,7 +234,7 @@ int __must_check sysfs_create_file_ns(struct kobject *kobj, | |||
234 | const struct attribute *attr, | 234 | const struct attribute *attr, |
235 | const void *ns); | 235 | const void *ns); |
236 | int __must_check sysfs_create_files(struct kobject *kobj, | 236 | int __must_check sysfs_create_files(struct kobject *kobj, |
237 | const struct attribute **attr); | 237 | const struct attribute * const *attr); |
238 | int __must_check sysfs_chmod_file(struct kobject *kobj, | 238 | int __must_check sysfs_chmod_file(struct kobject *kobj, |
239 | const struct attribute *attr, umode_t mode); | 239 | const struct attribute *attr, umode_t mode); |
240 | struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj, | 240 | struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj, |
@@ -243,7 +243,7 @@ void sysfs_unbreak_active_protection(struct kernfs_node *kn); | |||
243 | void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, | 243 | void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, |
244 | const void *ns); | 244 | const void *ns); |
245 | bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr); | 245 | bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr); |
246 | void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr); | 246 | void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr); |
247 | 247 | ||
248 | int __must_check sysfs_create_bin_file(struct kobject *kobj, | 248 | int __must_check sysfs_create_bin_file(struct kobject *kobj, |
249 | const struct bin_attribute *attr); | 249 | const struct bin_attribute *attr); |
@@ -342,7 +342,7 @@ static inline int sysfs_create_file_ns(struct kobject *kobj, | |||
342 | } | 342 | } |
343 | 343 | ||
344 | static inline int sysfs_create_files(struct kobject *kobj, | 344 | static inline int sysfs_create_files(struct kobject *kobj, |
345 | const struct attribute **attr) | 345 | const struct attribute * const *attr) |
346 | { | 346 | { |
347 | return 0; | 347 | return 0; |
348 | } | 348 | } |
@@ -377,7 +377,7 @@ static inline bool sysfs_remove_file_self(struct kobject *kobj, | |||
377 | } | 377 | } |
378 | 378 | ||
379 | static inline void sysfs_remove_files(struct kobject *kobj, | 379 | static inline void sysfs_remove_files(struct kobject *kobj, |
380 | const struct attribute **attr) | 380 | const struct attribute * const *attr) |
381 | { | 381 | { |
382 | } | 382 | } |
383 | 383 | ||