提交 18041f47 编写于 作者: G Greg Kroah-Hartman

kobject: make kobject_cleanup be static

No one except the kobject core calls it so make the function static.
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 663a4743
...@@ -79,8 +79,6 @@ static inline const char * kobject_name(const struct kobject * kobj) ...@@ -79,8 +79,6 @@ static inline const char * kobject_name(const struct kobject * kobj)
} }
extern void kobject_init(struct kobject *); extern void kobject_init(struct kobject *);
extern void kobject_cleanup(struct kobject *);
extern int __must_check kobject_add(struct kobject *); extern int __must_check kobject_add(struct kobject *);
extern void kobject_del(struct kobject *); extern void kobject_del(struct kobject *);
......
...@@ -436,12 +436,11 @@ struct kobject * kobject_get(struct kobject * kobj) ...@@ -436,12 +436,11 @@ struct kobject * kobject_get(struct kobject * kobj)
return kobj; return kobj;
} }
/** /*
* kobject_cleanup - free kobject resources. * kobject_cleanup - free kobject resources.
* @kobj: object. * @kobj: object to cleanup
*/ */
static void kobject_cleanup(struct kobject *kobj)
void kobject_cleanup(struct kobject * kobj)
{ {
struct kobj_type * t = get_ktype(kobj); struct kobj_type * t = get_ktype(kobj);
struct kset * s = kobj->kset; struct kset * s = kobj->kset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册