]> git.baikalelectronics.ru Git - kernel.git/commitdiff
livepatch: __klp_shadow_get_or_alloc() is local to shadow.c
authorJiri Kosina <jkosina@suse.cz>
Thu, 14 Sep 2017 21:15:36 +0000 (14:15 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 15 Sep 2017 17:17:13 +0000 (19:17 +0200)
... therefore make it static.

Fixes: a65572bd973 ("livepatch: introduce shadow variable API")
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/livepatch/shadow.c

index 67e4360521f34cc2e4a45ae7712c6fc036c68711..fdac27588d60a1f7dd8ed0525dc0c643ea0f829f 100644 (file)
@@ -113,7 +113,7 @@ void *klp_shadow_get(void *obj, unsigned long id)
 }
 EXPORT_SYMBOL_GPL(klp_shadow_get);
 
-void *__klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
+static void *__klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
                       size_t size, gfp_t gfp_flags, bool warn_on_exist)
 {
        struct klp_shadow *new_shadow;