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: 7c8e2bdd5f
("livepatch: Apply vmlinux-specific KLP relocations early")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Samuel Zou <zou_wei@huawei.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
2a42487496
commit
a4ae16f65c
|
@ -745,7 +745,8 @@ static int klp_init_func(struct klp_object *obj, struct klp_func *func)
|
||||||
func->old_sympos ? func->old_sympos : 1);
|
func->old_sympos ? func->old_sympos : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int klp_apply_object_relocs(struct klp_patch *patch, struct klp_object *obj)
|
static int klp_apply_object_relocs(struct klp_patch *patch,
|
||||||
|
struct klp_object *obj)
|
||||||
{
|
{
|
||||||
int i, ret;
|
int i, ret;
|
||||||
struct klp_modinfo *info = patch->mod->klp_info;
|
struct klp_modinfo *info = patch->mod->klp_info;
|
||||||
|
|
Loading…
Reference in New Issue