summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-12-04 06:31:08 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-25 05:40:09 +0100
commit18041f4775688af073d9b3ab0ffc262c1847e60b (patch)
treede6bdbd43525340c618bcfac96163ad441b3c446
parentkobject: fix up kobject_set_name to use kvasprintf (diff)
downloadlinux-18041f4775688af073d9b3ab0ffc262c1847e60b.tar.xz
linux-18041f4775688af073d9b3ab0ffc262c1847e60b.zip
kobject: make kobject_cleanup be static
No one except the kobject core calls it so make the function static. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--include/linux/kobject.h2
-rw-r--r--lib/kobject.c9
2 files changed, 4 insertions, 7 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 4a0d27f475d7..2d19a079ee79 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -79,8 +79,6 @@ static inline const char * kobject_name(const struct kobject * kobj)
}
extern void kobject_init(struct kobject *);
-extern void kobject_cleanup(struct kobject *);
-
extern int __must_check kobject_add(struct kobject *);
extern void kobject_del(struct kobject *);
diff --git a/lib/kobject.c b/lib/kobject.c
index 4a310e55a886..a152036db006 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -436,12 +436,11 @@ struct kobject * kobject_get(struct kobject * kobj)
return kobj;
}
-/**
- * kobject_cleanup - free kobject resources.
- * @kobj: object.
+/*
+ * kobject_cleanup - free kobject resources.
+ * @kobj: object to cleanup
*/
-
-void kobject_cleanup(struct kobject * kobj)
+static void kobject_cleanup(struct kobject *kobj)
{
struct kobj_type * t = get_ktype(kobj);
struct kset * s = kobj->kset;