summaryrefslogtreecommitdiffstats
path: root/kernel/livepatch/core.c
diff options
context:
space:
mode:
authorJosh Poimboeuf2017-02-14 02:42:30 +0100
committerJiri Kosina2017-03-08 09:19:16 +0100
commit46c5a0113f843be5c55b1c40dd486538891156d4 (patch)
tree60e5d6b2d22344c4646e056097133a93e9cb377b /kernel/livepatch/core.c
parentx86/entry: define _TIF_ALLWORK_MASK flags explicitly (diff)
downloadkernel-qcow2-linux-46c5a0113f843be5c55b1c40dd486538891156d4.tar.gz
kernel-qcow2-linux-46c5a0113f843be5c55b1c40dd486538891156d4.tar.xz
kernel-qcow2-linux-46c5a0113f843be5c55b1c40dd486538891156d4.zip
livepatch: create temporary klp_update_patch_state() stub
Create temporary stubs for klp_update_patch_state() so we can add TIF_PATCH_PENDING to different architectures in separate patches without breaking build bisectability. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/livepatch/core.c')
-rw-r--r--kernel/livepatch/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c
index af4643873e71..217b39d71176 100644
--- a/kernel/livepatch/core.c
+++ b/kernel/livepatch/core.c
@@ -64,6 +64,9 @@ static LIST_HEAD(klp_ops);
static struct kobject *klp_root_kobj;
+/* TODO: temporary stub */
+void klp_update_patch_state(struct task_struct *task) {}
+
static struct klp_ops *klp_find_ops(unsigned long old_addr)
{
struct klp_ops *ops;