aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 8872ad6dd89b..37bcb50a4d7c 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -115,7 +115,9 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
115 * "Define 'is'", Bill Clinton 115 * "Define 'is'", Bill Clinton
116 * "Define 'if'", Steven Rostedt 116 * "Define 'if'", Steven Rostedt
117 */ 117 */
118#define if(cond) if (__builtin_constant_p((cond)) ? !!(cond) : \ 118#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
119#define __trace_if(cond) \
120 if (__builtin_constant_p((cond)) ? !!(cond) : \
119 ({ \ 121 ({ \
120 int ______r; \ 122 int ______r; \
121 static struct ftrace_branch_data \ 123 static struct ftrace_branch_data \