提交 7e085ad4 编写于 作者: C Cheng Jian 提交者: Xie XiuQi

livepatch/config: depends on DEBUG_INFO

euler inclusion
category: bugfix
Bugzilla: 9285/5507
CVE: N/A

----------------------------------------

livepatch depends on CONFIG_DEBUG_INFO=y, which isn't selected by
`make allmodconfig` on arm64, that will cause the next build errors.

In function ‘klp_disable_patch’: kernel/livepatch/core.c:497:8:
error: implicit declaration of function
‘__klp_disable_patch’; did you mean ‘klp_disable_patch’?
[-Werror=implicit-function-declaration]

In function ‘klp_enable_patch’: kernel/livepatch/core.c:706:8:
error: implicit declaration of function ‘__klp_enable_patch’;
did you mean ‘klp_enable_patch’?
[-Werror=implicit-function-declaration]

In function ‘klp_check_calltrace’: arch/arm64/kernel/livepatch.c:126:4:
error: implicit declaration of function ‘show_stack’;
did you mean ‘dump_stack’?
[-Werror=implicit-function-declaration]

fix commit 842d0fd7ce9e ("livepatch/core: allow implementation without
ftrace")
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
Reviewed-by: NZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 85d0a4ba
...@@ -19,6 +19,7 @@ config LIVEPATCH ...@@ -19,6 +19,7 @@ config LIVEPATCH
depends on KALLSYMS_ALL depends on KALLSYMS_ALL
depends on HAVE_LIVEPATCH_FTRACE || HAVE_LIVEPATCH_WO_FTRACE depends on HAVE_LIVEPATCH_FTRACE || HAVE_LIVEPATCH_WO_FTRACE
depends on !TRIM_UNUSED_KSYMS depends on !TRIM_UNUSED_KSYMS
depends on DEBUG_INFO
default n default n
help help
Say Y here if you want to support kernel live patching. Say Y here if you want to support kernel live patching.
...@@ -44,7 +45,6 @@ config LIVEPATCH_FTRACE ...@@ -44,7 +45,6 @@ config LIVEPATCH_FTRACE
config LIVEPATCH_WO_FTRACE config LIVEPATCH_WO_FTRACE
bool "without ftrace" bool "without ftrace"
depends on HAVE_LIVEPATCH_WO_FTRACE depends on HAVE_LIVEPATCH_WO_FTRACE
depends on DEBUG_INFO
select LIVEPATCH_STOP_MACHINE_CONSISTENCY select LIVEPATCH_STOP_MACHINE_CONSISTENCY
help help
Supports kernel live patching without ftrace Supports kernel live patching without ftrace
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册