Commit fa40ae34 authored by Gabriel Somlo's avatar Gabriel Somlo Committed by Greg Kroah-Hartman

kobject: move EXPORT_SYMBOL() macros next to corresponding definitions

Move EXPORT_SYMBOL() macros in kobject.c from the end of the file
next to the function definitions to which they belong.
Signed-off-by: default avatarGabriel Somlo <somlo@cmu.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f7025709
...@@ -568,6 +568,7 @@ void kobject_del(struct kobject *kobj) ...@@ -568,6 +568,7 @@ void kobject_del(struct kobject *kobj)
kobject_put(kobj->parent); kobject_put(kobj->parent);
kobj->parent = NULL; kobj->parent = NULL;
} }
EXPORT_SYMBOL(kobject_del);
/** /**
* kobject_get - increment refcount for object. * kobject_get - increment refcount for object.
...@@ -584,6 +585,7 @@ struct kobject *kobject_get(struct kobject *kobj) ...@@ -584,6 +585,7 @@ struct kobject *kobject_get(struct kobject *kobj)
} }
return kobj; return kobj;
} }
EXPORT_SYMBOL(kobject_get);
static struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj) static struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj)
{ {
...@@ -675,6 +677,7 @@ void kobject_put(struct kobject *kobj) ...@@ -675,6 +677,7 @@ void kobject_put(struct kobject *kobj)
kref_put(&kobj->kref, kobject_release); kref_put(&kobj->kref, kobject_release);
} }
} }
EXPORT_SYMBOL(kobject_put);
static void dynamic_kobj_release(struct kobject *kobj) static void dynamic_kobj_release(struct kobject *kobj)
{ {
...@@ -803,6 +806,7 @@ int kset_register(struct kset *k) ...@@ -803,6 +806,7 @@ int kset_register(struct kset *k)
kobject_uevent(&k->kobj, KOBJ_ADD); kobject_uevent(&k->kobj, KOBJ_ADD);
return 0; return 0;
} }
EXPORT_SYMBOL(kset_register);
/** /**
* kset_unregister - remove a kset. * kset_unregister - remove a kset.
...@@ -815,6 +819,7 @@ void kset_unregister(struct kset *k) ...@@ -815,6 +819,7 @@ void kset_unregister(struct kset *k)
kobject_del(&k->kobj); kobject_del(&k->kobj);
kobject_put(&k->kobj); kobject_put(&k->kobj);
} }
EXPORT_SYMBOL(kset_unregister);
/** /**
* kset_find_obj - search for object in kset. * kset_find_obj - search for object in kset.
...@@ -1051,10 +1056,3 @@ void kobj_ns_drop(enum kobj_ns_type type, void *ns) ...@@ -1051,10 +1056,3 @@ void kobj_ns_drop(enum kobj_ns_type type, void *ns)
kobj_ns_ops_tbl[type]->drop_ns(ns); kobj_ns_ops_tbl[type]->drop_ns(ns);
spin_unlock(&kobj_ns_type_lock); spin_unlock(&kobj_ns_type_lock);
} }
EXPORT_SYMBOL(kobject_get);
EXPORT_SYMBOL(kobject_put);
EXPORT_SYMBOL(kobject_del);
EXPORT_SYMBOL(kset_register);
EXPORT_SYMBOL(kset_unregister);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment