Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gabriel Somlo and committed by
Greg Kroah-Hartman
fa40ae34 f7025709

+5 -7
+5 -7
lib/kobject.c
··· 568 568 kobject_put(kobj->parent); 569 569 kobj->parent = NULL; 570 570 } 571 + EXPORT_SYMBOL(kobject_del); 571 572 572 573 /** 573 574 * kobject_get - increment refcount for object. ··· 585 584 } 586 585 return kobj; 587 586 } 587 + EXPORT_SYMBOL(kobject_get); 588 588 589 589 static struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj) 590 590 { ··· 677 675 kref_put(&kobj->kref, kobject_release); 678 676 } 679 677 } 678 + EXPORT_SYMBOL(kobject_put); 680 679 681 680 static void dynamic_kobj_release(struct kobject *kobj) 682 681 { ··· 806 803 kobject_uevent(&k->kobj, KOBJ_ADD); 807 804 return 0; 808 805 } 806 + EXPORT_SYMBOL(kset_register); 809 807 810 808 /** 811 809 * kset_unregister - remove a kset. ··· 819 815 kobject_del(&k->kobj); 820 816 kobject_put(&k->kobj); 821 817 } 818 + EXPORT_SYMBOL(kset_unregister); 822 819 823 820 /** 824 821 * kset_find_obj - search for object in kset. ··· 1056 1051 kobj_ns_ops_tbl[type]->drop_ns(ns); 1057 1052 spin_unlock(&kobj_ns_type_lock); 1058 1053 } 1059 - 1060 - EXPORT_SYMBOL(kobject_get); 1061 - EXPORT_SYMBOL(kobject_put); 1062 - EXPORT_SYMBOL(kobject_del); 1063 - 1064 - EXPORT_SYMBOL(kset_register); 1065 - EXPORT_SYMBOL(kset_unregister);