kobject: make kset_get_ownership() 'static'

kset_get_ownership() is only used in lib/kobject.c, so make it 'static'.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Eric Biggers 2019-01-08 23:36:14 -08:00 коммит произвёл Greg Kroah-Hartman
Родитель 7e9586bab2
Коммит 7ab35a14de
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -887,7 +887,7 @@ static void kset_release(struct kobject *kobj)
kfree(kset); kfree(kset);
} }
void kset_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid) static void kset_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid)
{ {
if (kobj->parent) if (kobj->parent)
kobject_get_ownership(kobj->parent, uid, gid); kobject_get_ownership(kobj->parent, uid, gid);