Skip to content

Commit

Permalink
livepatch: __klp_shadow_get_or_alloc() is local to shadow.c
Browse files Browse the repository at this point in the history
... therefore make it static.

Fixes: 439e727 ("livepatch: introduce shadow variable API")
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Jiri Kosina committed Sep 15, 2017
1 parent 439e727 commit 5d9da75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/livepatch/shadow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d9da75

Please sign in to comment.