* [PATCH] kobject: make kset_get_ownership() 'static'
@ 2019-01-09 7:36 Eric Biggers
2019-01-09 9:24 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2019-01-09 7:36 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rafael J . Wysocki, linux-kernel
From: Eric Biggers <ebiggers@google.com>
kset_get_ownership() is only used in lib/kobject.c, so make it 'static'.
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
lib/kobject.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/kobject.c b/lib/kobject.c
index b72e00fd7d09e..aa89edcd2b63a 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kobject: make kset_get_ownership() 'static'
2019-01-09 7:36 [PATCH] kobject: make kset_get_ownership() 'static' Eric Biggers
@ 2019-01-09 9:24 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2019-01-09 9:24 UTC (permalink / raw)
To: Eric Biggers
Cc: Greg Kroah-Hartman, Rafael J . Wysocki, Linux Kernel Mailing List
On Wed, Jan 9, 2019 at 8:38 AM Eric Biggers <ebiggers@kernel.org> wrote:
>
> From: Eric Biggers <ebiggers@google.com>
>
> 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>
> ---
> lib/kobject.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/kobject.c b/lib/kobject.c
> index b72e00fd7d09e..aa89edcd2b63a 100644
> --- a/lib/kobject.c
> +++ b/lib/kobject.c
> @@ -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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-09 9:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-09 7:36 [PATCH] kobject: make kset_get_ownership() 'static' Eric Biggers
2019-01-09 9:24 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).