diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-04-17 02:35:39 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-17 11:52:26 -0400 |
commit | 76aa81118ddfbb3dc31533030cf3ec329dd067a6 (patch) | |
tree | ab741782e757be5635413b5f1359cd0d520a22a4 /include/trace | |
parent | 9ea21c1ecdb35ecdcac5fd9d95f62a1f6a7ffec0 (diff) |
tracing: avoid warnings from zero-arg tracepoints
Tracepoints with no arguments can issue two warnings:
"field" defined by not used
"ret" is uninitialized in this function
Mark field as being OK to leave unused, and initialize ret.
[ Impact: fix false positive compiler warnings. ]
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: mathieu.desnoyers@polymtl.ca
LKML-Reference: <1239950139-1119-5-git-send-email-jeremy@goop.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/ftrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 60c5323bee64..39a3351f2e7f 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -160,8 +160,8 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \ | |||
160 | static int \ | 160 | static int \ |
161 | ftrace_format_##call(struct trace_seq *s) \ | 161 | ftrace_format_##call(struct trace_seq *s) \ |
162 | { \ | 162 | { \ |
163 | struct ftrace_raw_##call field; \ | 163 | struct ftrace_raw_##call field __attribute__((unused)); \ |
164 | int ret; \ | 164 | int ret = 0; \ |
165 | \ | 165 | \ |
166 | tstruct; \ | 166 | tstruct; \ |
167 | \ | 167 | \ |