summaryrefslogtreecommitdiffstats
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2017-09-14 14:15:36 -0700
committerJiri Kosina <jkosina@suse.cz>2017-09-15 19:17:13 +0200
commit5d9da759f7587c87252ef98e70bc0b4a89e4d036 (patch)
tree3bdf2eaa2afd2e743dca4a0c1f766d07b462f805 /kernel/livepatch
parent439e7271dc2b63de379e37971dc2f64d71e24f8a (diff)
downloadlinux-5d9da759f7587c87252ef98e70bc0b4a89e4d036.tar.bz2
livepatch: __klp_shadow_get_or_alloc() is local to shadow.c
... therefore make it static. Fixes: 439e7271dc2 ("livepatch: introduce shadow variable API") Acked-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/livepatch')
-rw-r--r--kernel/livepatch/shadow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/shadow.c b/kernel/livepatch/shadow.c
index 67e4360521f3..fdac27588d60 100644
--- a/kernel/livepatch/shadow.c
+++ b/kernel/livepatch/shadow.c
@@ -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;