From: Chen Gang <gang.chen@xxxxxxxxxxx> Need add "asm/ftrace.h" for pass compiling. Cross-compiler is compiled from binutils-2.23.2 and gcc-4.9.0 source. The related error (with allmodconfig for fsf processor): arch/xtensa/kernel/xtensa_ksyms.c:129:15: error: '_mcount' undeclared here (not in a function) Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx> Signed-off-by: Max Filippov <jcmvbkbc@xxxxxxxxx> --- arch/xtensa/kernel/xtensa_ksyms.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/xtensa/kernel/xtensa_ksyms.c b/arch/xtensa/kernel/xtensa_ksyms.c index d8507f8..316f008 100644 --- a/arch/xtensa/kernel/xtensa_ksyms.c +++ b/arch/xtensa/kernel/xtensa_ksyms.c @@ -32,6 +32,9 @@ #include <net/checksum.h> #endif /* CONFIG_NET */ +#ifdef CONFIG_FUNCTION_TRACER +#include <asm/ftrace.h> +#endif /* CONFIG_FUNCTION_TRACER */ /* * String functions -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html