]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/compiler.h
Fix build errors due to CONFIG_BRANCH_TRACER=y
[linux-2.6-omap-h63xx.git] / include / linux / compiler.h
index 6faa7e549de4c28c120a924bfb8015f26abb37ff..cebfdcd3dbddc3e7715b637f58452332586cdfa3 100644 (file)
@@ -114,7 +114,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                        \