Skip to contentSkip to conversation

tracing: Add missing "inline" in stub function of latency_fsnotify()

PATCH In review Steven Rostedt 2 participants 2 messages Nov 15, 2019 Tracing

lore
Share & tools
lore

Steven Rostedt

author maintainer
#0 lore raw

PATCH 1/1 tracing: Add missing "inline" in stub function of latency_fsnotify()

From: "Steven Rostedt (VMware)" <[email protected]>

The latency_fsnotify() stub when the function is not defined, was missing the "inline".

---
 kernel/trace/trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace.h +1 -1
index 90cba68c8b50..2df8aed6a8f0 100644
@@ -801,7 +801,7 @@ void latency_fsnotify(struct trace_array *tr);
 
 #else
 
-static void latency_fsnotify(struct trace_array *tr) { }
+static inline void latency_fsnotify(struct trace_array *tr) { }
 
 #endif
 
Signature · 1 line
2.20.1
#1 lore raw
Quoted 6 lines · Steven Rostedt
kernel/trace/trace.h +0 -0
index 90cba68c8b50..2df8aed6a8f0 100644

kernel/trace/trace.h void latency_fsnotify(struct trace_array *tr); · line 807

Quoted 8 lines
kernel/trace/trace.h +1 -1
@@ -801,7 +801,7 @@ void latency_fsnotify(struct trace_array *tr);
 
  #else
 
-static void latency_fsnotify(struct trace_array *tr) { }
+static inline void latency_fsnotify(struct trace_array *tr) { }
 
  #endif
 

Looks good to me.

Thanks for fixing this.

best regards,

Viktor