]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace: clean up macro usage
authorIngo Molnar <mingo@elte.hu>
Mon, 25 Aug 2008 06:12:04 +0000 (08:12 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:36:09 +0000 (10:36 +0200)
enclose the argument in parenthesis. (especially since we cast it,
which is a high prio operation)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c

index 7599abdf6d4d4e8911abe1e8014a9d739df6d0e8..969a83f75a3ec774ba81f3cf44f135b4e888390a 100644 (file)
@@ -165,7 +165,7 @@ static DEFINE_SPINLOCK(ftrace_hash_lock);
 #define ftrace_hash_unlock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags)
 #else
 /* This is protected via the ftrace_lock with MCOUNT_RECORD. */
-#define ftrace_hash_lock(flags)   do { (void)flags; } while (0)
+#define ftrace_hash_lock(flags)   do { (void)(flags); } while (0)
 #define ftrace_hash_unlock(flags) do { } while(0)
 #endif