diff options
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r-- | include/linux/compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 6faa7e549de4..cebfdcd3dbdd 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
@@ -114,7 +114,9 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); | |||
114 | * "Define 'is'", Bill Clinton | 114 | * "Define 'is'", Bill Clinton |
115 | * "Define 'if'", Steven Rostedt | 115 | * "Define 'if'", Steven Rostedt |
116 | */ | 116 | */ |
117 | #define if(cond) if (__builtin_constant_p((cond)) ? !!(cond) : \ | 117 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) |
118 | #define __trace_if(cond) \ | ||
119 | if (__builtin_constant_p((cond)) ? !!(cond) : \ | ||
118 | ({ \ | 120 | ({ \ |
119 | int ______r; \ | 121 | int ______r; \ |
120 | static struct ftrace_branch_data \ | 122 | static struct ftrace_branch_data \ |