summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManeesh Soni <maneesh@in.ibm.com>2004-05-13 22:13:00 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-05-13 22:13:00 -0700
commit51c0c34c8f0ac464c97aaef4754e7dc163dd586e (patch)
tree2a1e0d29b4867dd8d48f96517d0d66a667184b8a /include
parentf00beb55bde63c01a8ee200e33c7f3d72a4e92b7 (diff)
[PATCH] sysfs_rename_dir-cleanup
o The following patch cleans up sysfs_rename_dir(). It now checks the return code of kobject_set_name() and propagates the error code to its callers. Because of this there are changes in the following two APIs. Both return int instead of void. int sysfs_rename_dir(struct kobject * kobj, const char *new_name) int kobject_rename(struct kobject * kobj, char *new_name)
Diffstat (limited to 'include')
-rw-r--r--include/linux/kobject.h2
-rw-r--r--include/linux/sysfs.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index f32f39b4cce6..6360d225884c 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -48,7 +48,7 @@ extern void kobject_cleanup(struct kobject *);
extern int kobject_add(struct kobject *);
extern void kobject_del(struct kobject *);
-extern void kobject_rename(struct kobject *, char *new_name);
+extern int kobject_rename(struct kobject *, char *new_name);
extern int kobject_register(struct kobject *);
extern void kobject_unregister(struct kobject *);
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index de2083939b74..31f1c8b4428d 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -44,7 +44,7 @@ sysfs_create_dir(struct kobject *);
extern void
sysfs_remove_dir(struct kobject *);
-extern void
+extern int
sysfs_rename_dir(struct kobject *, const char *new_name);
extern int