diff options
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 30b2ebee6439..bd96c603ab6c 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -198,6 +198,7 @@ int __must_check sysfs_chmod_file(struct kobject *kobj, | |||
198 | const struct attribute *attr, umode_t mode); | 198 | const struct attribute *attr, umode_t mode); |
199 | void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, | 199 | void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, |
200 | const void *ns); | 200 | const void *ns); |
201 | bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr); | ||
201 | void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr); | 202 | void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr); |
202 | 203 | ||
203 | int __must_check sysfs_create_bin_file(struct kobject *kobj, | 204 | int __must_check sysfs_create_bin_file(struct kobject *kobj, |
@@ -301,6 +302,12 @@ static inline void sysfs_remove_file_ns(struct kobject *kobj, | |||
301 | { | 302 | { |
302 | } | 303 | } |
303 | 304 | ||
305 | static inline bool sysfs_remove_file_self(struct kobject *kobj, | ||
306 | const struct attribute *attr) | ||
307 | { | ||
308 | return false; | ||
309 | } | ||
310 | |||
304 | static inline void sysfs_remove_files(struct kobject *kobj, | 311 | static inline void sysfs_remove_files(struct kobject *kobj, |
305 | const struct attribute **attr) | 312 | const struct attribute **attr) |
306 | { | 313 | { |