summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorWardenjohn <zhangwarden@gmail.com>2024-05-07 13:01:11 +0800
committerPetr Mladek <pmladek@suse.com>2024-05-09 15:48:01 +0200
commitd927752f287fe10965612541593468ffcfa9231f (patch)
treedd88e7e9030427f67558e22008b009d84e9e7db7 /init
parent00657bb3dbecee324336e1da1ad71b670b6aee60 (diff)
downloadlwn-d927752f287fe10965612541593468ffcfa9231f.tar.gz
lwn-d927752f287fe10965612541593468ffcfa9231f.zip
livepatch: Rename KLP_* to KLP_TRANSITION_*
The original macros of KLP_* is about the state of the transition. Rename macros of KLP_* to KLP_TRANSITION_* to fix the confusing description of klp transition state. Signed-off-by: Wardenjohn <zhangwarden@gmail.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Tested-by: Petr Mladek <pmladek@suse.com> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> Acked-by: Miroslav Benes <mbenes@suse.cz> Link: https://lore.kernel.org/r/20240507050111.38195-2-zhangwarden@gmail.com Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'init')
-rw-r--r--init/init_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init_task.c b/init/init_task.c
index 5727d42149c3..9b41f00d30e2 100644
--- a/init/init_task.c
+++ b/init/init_task.c
@@ -202,7 +202,7 @@ struct task_struct init_task
.trace_recursion = 0,
#endif
#ifdef CONFIG_LIVEPATCH
- .patch_state = KLP_UNDEFINED,
+ .patch_state = KLP_TRANSITION_IDLE,
#endif
#ifdef CONFIG_SECURITY
.security = NULL,