Commit 819ce45afebd77a9de736fa5304ba8352d11dff9
1 parent
669336e4cf
Exists in
master
and in
39 other branches
tracing: Drop cpparg() macro
Drop the cpparg() macro that wraps CPP parameters. We already have the PARAM() macro for that, no need to have several versions. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Li Zefan <lizf@cn.fujitsu.com>
Showing 1 changed file with 2 additions and 5 deletions Side-by-side Diff
include/trace/ftrace.h
... | ... | @@ -75,15 +75,12 @@ |
75 | 75 | #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ |
76 | 76 | DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) |
77 | 77 | |
78 | -#undef __cpparg | |
79 | -#define __cpparg(arg...) arg | |
80 | - | |
81 | 78 | /* Callbacks are meaningless to ftrace. */ |
82 | 79 | #undef TRACE_EVENT_FN |
83 | 80 | #define TRACE_EVENT_FN(name, proto, args, tstruct, \ |
84 | 81 | assign, print, reg, unreg) \ |
85 | - TRACE_EVENT(name, __cpparg(proto), __cpparg(args), \ | |
86 | - __cpparg(tstruct), __cpparg(assign), __cpparg(print)) \ | |
82 | + TRACE_EVENT(name, PARAMS(proto), PARAMS(args), \ | |
83 | + PARAMS(tstruct), PARAMS(assign), PARAMS(print)) \ | |
87 | 84 | |
88 | 85 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) |
89 | 86 |