lkml.org 
[lkml]   [2019]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] kobject: make kset_get_ownership() 'static'
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
>

\
 
 \ /
  Last update: 2019-01-09 10:25    [W:1.171 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site