diff options
author | Gabriel Somlo <somlo@cmu.edu> | 2015-08-10 15:51:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 06:46:16 -0400 |
commit | fa40ae34441286b2cb595468ef781e24573e9e7d (patch) | |
tree | 97cb0ada94af9bbe6129f80eef2ba747a934ccf1 | |
parent | f7025709e29aded887becdaf4a81072ef1f475bf (diff) |
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: Gabriel Somlo <somlo@cmu.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | lib/kobject.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 3e3a5c3cb330..055407746266 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -568,6 +568,7 @@ void kobject_del(struct kobject *kobj) | |||
568 | kobject_put(kobj->parent); | 568 | kobject_put(kobj->parent); |
569 | kobj->parent = NULL; | 569 | kobj->parent = NULL; |
570 | } | 570 | } |
571 | EXPORT_SYMBOL(kobject_del); | ||
571 | 572 | ||
572 | /** | 573 | /** |
573 | * kobject_get - increment refcount for object. | 574 | * kobject_get - increment refcount for object. |
@@ -584,6 +585,7 @@ struct kobject *kobject_get(struct kobject *kobj) | |||
584 | } | 585 | } |
585 | return kobj; | 586 | return kobj; |
586 | } | 587 | } |
588 | EXPORT_SYMBOL(kobject_get); | ||
587 | 589 | ||
588 | static struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj) | 590 | static struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj) |
589 | { | 591 | { |
@@ -675,6 +677,7 @@ void kobject_put(struct kobject *kobj) | |||
675 | kref_put(&kobj->kref, kobject_release); | 677 | kref_put(&kobj->kref, kobject_release); |
676 | } | 678 | } |
677 | } | 679 | } |
680 | EXPORT_SYMBOL(kobject_put); | ||
678 | 681 | ||
679 | static void dynamic_kobj_release(struct kobject *kobj) | 682 | static void dynamic_kobj_release(struct kobject *kobj) |
680 | { | 683 | { |
@@ -803,6 +806,7 @@ int kset_register(struct kset *k) | |||
803 | kobject_uevent(&k->kobj, KOBJ_ADD); | 806 | kobject_uevent(&k->kobj, KOBJ_ADD); |
804 | return 0; | 807 | return 0; |
805 | } | 808 | } |
809 | EXPORT_SYMBOL(kset_register); | ||
806 | 810 | ||
807 | /** | 811 | /** |
808 | * kset_unregister - remove a kset. | 812 | * kset_unregister - remove a kset. |
@@ -815,6 +819,7 @@ void kset_unregister(struct kset *k) | |||
815 | kobject_del(&k->kobj); | 819 | kobject_del(&k->kobj); |
816 | kobject_put(&k->kobj); | 820 | kobject_put(&k->kobj); |
817 | } | 821 | } |
822 | EXPORT_SYMBOL(kset_unregister); | ||
818 | 823 | ||
819 | /** | 824 | /** |
820 | * kset_find_obj - search for object in kset. | 825 | * kset_find_obj - search for object in kset. |
@@ -1051,10 +1056,3 @@ void kobj_ns_drop(enum kobj_ns_type type, void *ns) | |||
1051 | kobj_ns_ops_tbl[type]->drop_ns(ns); | 1056 | kobj_ns_ops_tbl[type]->drop_ns(ns); |
1052 | spin_unlock(&kobj_ns_type_lock); | 1057 | spin_unlock(&kobj_ns_type_lock); |
1053 | } | 1058 | } |
1054 | |||
1055 | EXPORT_SYMBOL(kobject_get); | ||
1056 | EXPORT_SYMBOL(kobject_put); | ||
1057 | EXPORT_SYMBOL(kobject_del); | ||
1058 | |||
1059 | EXPORT_SYMBOL(kset_register); | ||
1060 | EXPORT_SYMBOL(kset_unregister); | ||