[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 09 Sep 2009 09:48:53 -0700
From: Joe Perches <joe@...ches.com>
To: Steven Rostedt <rostedt@...dmis.org>,
Li Zefan <lizf@...fujitsu.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] ftrace.h: TP_fast_assign - use do {} while (0);
Perhaps this is a more kernel style standard way to allow
local variables in TP_fast_assign.
http://git.kernel.org/?p=linux/kernel/git/x86/linux-2.6-tip.git;a=commitdiff;h=a9c1c3abe1160a5632e48c929b02b740556bf423
Signed-off-by: Joe Perches <joe@...ches.com>
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index f64fbaa..4c99bdc 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -142,7 +142,7 @@
#define TP_printk(fmt, args...) "%s, %s\n", #fmt, __stringify(args)
#undef TP_fast_assign
-#define TP_fast_assign(args...) args
+#define TP_fast_assign(args...) do { args } while (0);
#undef TP_perf_assign
#define TP_perf_assign(args...)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists