Skip to contentSkip to conversation

kobject: make kset_get_ownership() 'static'

PATCH In review Eric Biggers 2 participants 2 messages Jan 9, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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'.

---
 lib/kobject.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kobject.c +1 -1
index b72e00fd7d09e..aa89edcd2b63a 100644
@@ -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
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Eric Biggers

From: Eric Biggers <[email protected]>

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

Quoted 20 lines
---
 lib/kobject.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kobject.c +1 -2
index b72e00fd7d09e..aa89edcd2b63a 100644
@@ -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