arm64: ftrace: use function_nocfi for _mcount as well
[linux-2.6-microblaze.git] / arch / arm64 / include / asm / ftrace.h
index 91fa4ba..347b0cc 100644 (file)
@@ -15,7 +15,7 @@
 #ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS
 #define ARCH_SUPPORTS_FTRACE_OPS 1
 #else
-#define MCOUNT_ADDR            ((unsigned long)_mcount)
+#define MCOUNT_ADDR            ((unsigned long)function_nocfi(_mcount))
 #endif
 
 /* The BL at the callsite's adjusted rec->ip */