From: Wang ShaoBo bobo.shaobowang@huawei.com
hulk inclusion category: bugfix bugzilla: 28338/31814 CVE: NA
-----------------------------------------------
CONFIG_JUMP_LABEL depends on CC_HAS_ASM_GOTO, some older compiler may not support.
if CONFIG_JUMP_LABEL closed, compile error as follow:
kernel/livepatch/core.c: In function ‘klp_init_object_loaded’: kernel/livepatch/core.c:1084:2: error: implicit declaration of function ‘jump_label_register’ [-Werror=implicit-function-declaration] ret = jump_label_register(patch->mod); ^
Fixes: 292937f547e6 ("livepatch/core: support jump_label") Signed-off-by: Wang ShaoBo bobo.shaobowang@huawei.com Reviewed-by: Cheng Jian cj.chengjian@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- include/linux/jump_label.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index c2d4a21..8028836 100644 --- a/include/linux/jump_label.h +++ b/include/linux/jump_label.h @@ -240,6 +240,11 @@ static inline int jump_label_apply_nops(struct module *mod) return 0; }
+static inline int jump_label_register(struct module *mod) +{ + return 0; +} + static inline void static_key_enable(struct static_key *key) { STATIC_KEY_CHECK_USE(key);