ftrace: Make ftrace_location() a nop on !DYNAMIC_FTRACE
[deliverable/linux.git] / include / linux / ftrace.h
index 3e711122f66c3c15a15f332e9b65c6e963edb987..a52f2f4fe0301d6fcb38c886fb912a1cdc65a79b 100644 (file)
@@ -520,7 +520,7 @@ extern int skip_trace(unsigned long ip);
 
 extern void ftrace_disable_daemon(void);
 extern void ftrace_enable_daemon(void);
-#else
+#else /* CONFIG_DYNAMIC_FTRACE */
 static inline int skip_trace(unsigned long ip) { return 0; }
 static inline int ftrace_force_update(void) { return 0; }
 static inline void ftrace_disable_daemon(void) { }
@@ -538,6 +538,10 @@ static inline int ftrace_text_reserved(void *start, void *end)
 {
        return 0;
 }
+static inline unsigned long ftrace_location(unsigned long ip)
+{
+       return 0;
+}
 
 /*
  * Again users of functions that have ftrace_ops may not
This page took 0.045545 seconds and 5 git commands to generate.