[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210406102351.64028-1-zhangjianhua18@huawei.com>
Date: Tue, 6 Apr 2021 18:23:51 +0800
From: Zhang Jianhua <zhangjianhua18@...wei.com>
To: <rostedt@...dmis.org>, <mingo@...hat.com>,
<zhangjianhua18@...wei.com>
CC: <linux-kernel@...r.kernel.org>, <johnny.chenyi@...wei.com>,
<heying24@...wei.com>
Subject: [PATCH -next] arm: patch: FUNCTION_GRAPH_TRACER depends on CPU_ENDIAN_BE8 or !CPU_ENDIAN_BE32
If CONFIG_FUNCTION_GRAPH_TRACER=y, the following errors will be seen
while compiling patch.c
arch/arm/kernel/patch.c: In function ‘__patch_text_real’:
arch/arm/kernel/patch.c:94:11: error: implicit declaration of function
‘__opcode_to_mem_thumb32’; did you mean ‘__opcode_to_mem_thumb16’?
[-Werror=implicit-function-declaration]
insn = __opcode_to_mem_thumb32(insn);
^~~~~~~~~~~~~~~~~~~~~~~
__opcode_to_mem_thumb16
Signed-off-by: Zhang Jianhua <zhangjianhua18@...wei.com>
---
kernel/trace/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 7fa82778c3e6..fbf5fd80f105 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -177,6 +177,7 @@ config FUNCTION_GRAPH_TRACER
depends on HAVE_FUNCTION_GRAPH_TRACER
depends on FUNCTION_TRACER
depends on !X86_32 || !CC_OPTIMIZE_FOR_SIZE
+ depends on CPU_ENDIAN_BE8 || !CPU_ENDIAN_BE32
default y
help
Enable the kernel to trace a function at both its return
--
2.17.1
Powered by blists - more mailing lists