diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 43665add9805..7599abdf6d4d 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -161,8 +161,8 @@ static int __unregister_ftrace_function(struct ftrace_ops *ops) | |||
161 | * not recorded via the compilation. | 161 | * not recorded via the compilation. |
162 | */ | 162 | */ |
163 | static DEFINE_SPINLOCK(ftrace_hash_lock); | 163 | static DEFINE_SPINLOCK(ftrace_hash_lock); |
164 | #define ftrace_hash_lock(flags) spin_lock_irqsave(ftrace_hash_lock, flags) | 164 | #define ftrace_hash_lock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags) |
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) |