ARM: 8905/1: Emit __gnu_mcount_nc when using Clang 10.0.0 or newer
[sfrench/cifs-2.6.git] / arch / arm / Kconfig
index eae53c69a1778bc47db56dd6ede7f00fcc64f239..859b49d0d0772bfd155e84bdfd541881648ace92 100644 (file)
@@ -78,7 +78,7 @@ config ARM
        select HAVE_FAST_GUP if ARM_LPAE
        select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL
        select HAVE_FUNCTION_GRAPH_TRACER if !THUMB2_KERNEL && !CC_IS_CLANG
-       select HAVE_FUNCTION_TRACER if !XIP_KERNEL
+       select HAVE_FUNCTION_TRACER if !XIP_KERNEL && (CC_IS_GCC || CLANG_VERSION >= 100000)
        select HAVE_GCC_PLUGINS
        select HAVE_HW_BREAKPOINT if PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7)
        select HAVE_IDE if PCI || ISA || PCMCIA