aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-08-25 02:12:04 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 04:36:09 -0400
commitac8825ec6d941b6899331b84c7d6bf027c3bb4f1 (patch)
tree3c8673f34f88e9438405216416ad22af8b9e4998 /kernel/trace/ftrace.c
parent2d7da80f7138c4276ef4fa0334be400b805d0fbf (diff)
ftrace: clean up macro usage
enclose the argument in parenthesis. (especially since we cast it, which is a high prio operation) Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 7599abdf6d4d..969a83f75a3e 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -165,7 +165,7 @@ static DEFINE_SPINLOCK(ftrace_hash_lock);
165#define ftrace_hash_unlock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags) 165#define ftrace_hash_unlock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags)
166#else 166#else
167/* This is protected via the ftrace_lock with MCOUNT_RECORD. */ 167/* This is protected via the ftrace_lock with MCOUNT_RECORD. */
168#define ftrace_hash_lock(flags) do { (void)flags; } while (0) 168#define ftrace_hash_lock(flags) do { (void)(flags); } while (0)
169#define ftrace_hash_unlock(flags) do { } while(0) 169#define ftrace_hash_unlock(flags) do { } while(0)
170#endif 170#endif
171 171