summaryrefslogtreecommitdiff
path: root/include/linux/livepatch.h
diff options
context:
space:
mode:
authorJessica Yu <jeyu@redhat.com>2016-08-18 03:58:28 +0300
committerJiri Kosina <jkosina@suse.cz>2016-08-19 00:41:55 +0300
commit255e732c61dbb6a0bf9e0a3d6bc45f202853c880 (patch)
tree809fd1b54c971df21bc2e3929376ba9887eefafa /include/linux/livepatch.h
parent694d0d0bb2030d2e36df73e2d23d5770511dbc8d (diff)
downloadlinux-255e732c61dbb6a0bf9e0a3d6bc45f202853c880.tar.xz
livepatch: use arch_klp_init_object_loaded() to finish arch-specific tasks
Introduce arch_klp_init_object_loaded() to complete any additional arch-specific tasks during patching. Architecture code may override this function. Signed-off-by: Jessica Yu <jeyu@redhat.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Acked-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/livepatch.h')
-rw-r--r--include/linux/livepatch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h
index a93a0b23dc8d..9072f04db616 100644
--- a/include/linux/livepatch.h
+++ b/include/linux/livepatch.h
@@ -116,6 +116,9 @@ int klp_unregister_patch(struct klp_patch *);
int klp_enable_patch(struct klp_patch *);
int klp_disable_patch(struct klp_patch *);
+void arch_klp_init_object_loaded(struct klp_patch *patch,
+ struct klp_object *obj);
+
/* Called from the module loader during module coming/going states */
int klp_module_coming(struct module *mod);
void klp_module_going(struct module *mod);