Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac8825ec authored by Ingo Molnar's avatar Ingo Molnar
Browse files

ftrace: clean up macro usage



enclose the argument in parenthesis. (especially since we cast it,
which is a high prio operation)

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2d7da80f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -165,7 +165,7 @@ static DEFINE_SPINLOCK(ftrace_hash_lock);
#define ftrace_hash_unlock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags)
#define ftrace_hash_unlock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags)
#else
#else
/* This is protected via the ftrace_lock with MCOUNT_RECORD. */
/* 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)
#define ftrace_hash_unlock(flags) do { } while(0)
#endif
#endif