livepatch/core: Fix compile error when CONFIG_JUMP_LABEL closed
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: 4a7e5316 ("livepatch/core: support jump_label") Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com> Reviewed-by: NCheng Jian <cj.chengjian@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录