__gnu_mcount_nc() is implemented when kernel doesn&#39;t<br>enable CONFIG_DYNAMIC_FTRACE, so added the condition<br>where the function are declared.<br><br>Signed-off-by: xiaojiang &lt;<a href="mailto:jgq516@gmail.com">jgq516@gmail.com</a>&gt;<br>
---<br> arch/arm/include/asm/ftrace.h |    2 ++<br> arch/arm/kernel/armksyms.c    |    2 ++<br> 2 files changed, 4 insertions(+), 0 deletions(-)<br><br>diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h<br>
index 103f7ee..a1c58ab 100644<br>--- a/arch/arm/include/asm/ftrace.h<br>+++ b/arch/arm/include/asm/ftrace.h<br>@@ -7,8 +7,10 @@<br> <br> #ifndef __ASSEMBLY__<br> extern void mcount(void);<br>+#ifndef CONFIG_DYNAMIC_FTRACE<br>
 extern void __gnu_mcount_nc(void);<br> #endif<br>+#endif<br> <br> #endif<br> <br>diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c<br>index 8214bfe..62d00b0 100644<br>--- a/arch/arm/kernel/armksyms.c<br>
+++ b/arch/arm/kernel/armksyms.c<br>@@ -166,5 +166,7 @@ EXPORT_SYMBOL(_find_next_bit_be);<br> <br> #ifdef CONFIG_FUNCTION_TRACER<br> EXPORT_SYMBOL(mcount);<br>+#ifndef CONFIG_DYNAMIC_FTRACE<br> EXPORT_SYMBOL(__gnu_mcount_nc);<br>
 #endif<br>+#endif<br>-- <br><br>