aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/ftrace.h')
-rw-r--r--arch/x86/include/asm/ftrace.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h
index f2ed6b704a75..a23468194b8c 100644
--- a/arch/x86/include/asm/ftrace.h
+++ b/arch/x86/include/asm/ftrace.h
@@ -22,16 +22,16 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)
22extern void ftrace_nmi_enter(void); 22extern void ftrace_nmi_enter(void);
23extern void ftrace_nmi_exit(void); 23extern void ftrace_nmi_exit(void);
24#else 24#else
25#define ftrace_nmi_enter() do { } while (0) 25static inline void ftrace_nmi_enter(void) { }
26#define ftrace_nmi_exit() do { } while (0) 26static inline void ftrace_nmi_exit(void) { }
27#endif
28#endif 27#endif
28#endif /* __ASSEMBLY__ */
29 29
30#else /* CONFIG_FUNCTION_TRACER */ 30#else /* CONFIG_FUNCTION_TRACER */
31 31
32#ifndef __ASSEMBLY__ 32#ifndef __ASSEMBLY__
33#define ftrace_nmi_enter() do { } while (0) 33static inline void ftrace_nmi_enter(void) { }
34#define ftrace_nmi_exit() do { } while (0) 34static inline void ftrace_nmi_exit(void) { }
35#endif 35#endif
36 36
37#endif /* CONFIG_FUNCTION_TRACER */ 37#endif /* CONFIG_FUNCTION_TRACER */