kobject: make kset_get_ownership() 'static'
Subsystems (2)
PATCH 1/1 kobject: make kset_get_ownership() 'static'
From: Eric Biggers <[email protected]>
kset_get_ownership() is only used in lib/kobject.c, so make it 'static'.
Signed-off-by Eric Biggers <[email protected]>
--- lib/kobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kobject.c +1 -1
@@ -887,7 +887,7 @@ static void kset_release(struct kobject *kobj)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)kobject_get_ownership (kobj->parent, uid, gid);
Signature · 1 line
2.20.1
Quoted 6 lines · Eric Biggers
From: Eric Biggers <[email protected]>
kset_get_ownership()is only used inlib/kobject.c, so make it 'static'.Signed-off-by Eric Biggers <[email protected]>
Reviewed-by Rafael J. Wysocki <[email protected]>
Quoted 20 lines
--- lib/kobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/kobject.c +1
-2@@ -887,7 +887,7 @@ static void kset_release(struct kobject *kobj)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)kobject_get_ownership (kobj->parent, uid, gid); --2.20.1