diff options
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index b330e289d71f..39924a962207 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -20,6 +20,8 @@ | |||
20 | struct kobject; | 20 | struct kobject; |
21 | struct module; | 21 | struct module; |
22 | 22 | ||
23 | extern int kobject_set_name(struct kobject *kobj, const char *name, ...) | ||
24 | __attribute__((format(printf, 2, 3))); | ||
23 | /* FIXME | 25 | /* FIXME |
24 | * The *owner field is no longer used, but leave around | 26 | * The *owner field is no longer used, but leave around |
25 | * until the tree gets cleaned up fully. | 27 | * until the tree gets cleaned up fully. |
@@ -147,7 +149,7 @@ static inline void sysfs_remove_dir(struct kobject *kobj) | |||
147 | 149 | ||
148 | static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name) | 150 | static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name) |
149 | { | 151 | { |
150 | return 0; | 152 | return kobject_set_name(kobj, "%s", new_name); |
151 | } | 153 | } |
152 | 154 | ||
153 | static inline int sysfs_move_dir(struct kobject *kobj, | 155 | static inline int sysfs_move_dir(struct kobject *kobj, |