Skip to content

Commit a4ae16f

Browse files
SamuelZOUJiri Kosina
authored andcommitted
livepatch: Make klp_apply_object_relocs static
Fix the following sparse warning: kernel/livepatch/core.c:748:5: warning: symbol 'klp_apply_object_relocs' was not declared. The klp_apply_object_relocs() has only one call site within core.c; it should be static Fixes: 7c8e2bd ("livepatch: Apply vmlinux-specific KLP relocations early") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Samuel Zou <[email protected]> Acked-by: Josh Poimboeuf <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 2a42487 commit a4ae16f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/livepatch/core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ static int klp_init_func(struct klp_object *obj, struct klp_func *func)
745745
func->old_sympos ? func->old_sympos : 1);
746746
}
747747

748-
int klp_apply_object_relocs(struct klp_patch *patch, struct klp_object *obj)
748+
static int klp_apply_object_relocs(struct klp_patch *patch,
749+
struct klp_object *obj)
749750
{
750751
int i, ret;
751752
struct klp_modinfo *info = patch->mod->klp_info;

0 commit comments

Comments
 (0)