kobject: make kobject_cleanup be static
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Dec 2007 05:31:08 +0000 (21:31 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:09 +0000 (20:40 -0800)
No one except the kobject core calls it so make the function static.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/kobject.h
lib/kobject.c

index 4a0d27f..2d19a07 100644 (file)
@@ -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 *);
 
index 4a310e5..a152036 100644 (file)
@@ -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;