提交 a48f494e 编写于 作者: S Steven Rostedt 提交者: Steven Rostedt

tracing: have TRACE_EVENT macro use __flags to not shadow parameter

The generated functions of TRACE_EVENT uses "flags" in one of the
sub macros which shadows a parameter in the outside macro.

Simple fix is to make the submacro use __flags instead.

Discovered by sparse.
Reported-by: NJaswinder Singh Rajput <jaswinder@kernel.org>
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 ec827c7e
......@@ -239,9 +239,9 @@ ftrace_format_##call(struct ftrace_event_call *unused, \
#undef __print_flags
#define __print_flags(flag, delim, flag_array...) \
({ \
static const struct trace_print_flags flags[] = \
static const struct trace_print_flags __flags[] = \
{ flag_array, { -1, NULL }}; \
ftrace_print_flags_seq(p, delim, flag, flags); \
ftrace_print_flags_seq(p, delim, flag, __flags); \
})
#undef __print_symbolic
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册