projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9ad8bc
)
branch tracer, intel-iommu: fix build with CONFIG_BRANCH_TRACER=y
author
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 7 Apr 2009 14:59:41 +0000
(07:59 -0700)
committer
Ingo Molnar
<mingo@elte.hu>
Tue, 7 Apr 2009 15:07:41 +0000
(17:07 +0200)
Fix the branch tracer barfing on comma statements within if ()
statements.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/compiler.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/compiler.h
b/include/linux/compiler.h
index 8872ad6dd89b3a5246047c33f3bed948ae5d57d2..37bcb50a4d7c85b1ac203982cc71f11e75511cde 100644
(file)
--- 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);
* "Define 'is'", Bill Clinton
* "Define 'if'", Steven Rostedt
*/
-#define if(cond) if (__builtin_constant_p((cond)) ? !!(cond) : \
+#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
+#define __trace_if(cond) \
+ if (__builtin_constant_p((cond)) ? !!(cond) : \
({ \
int ______r; \
static struct ftrace_branch_data \