diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2019-05-16 15:13:26 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-05-24 03:05:46 -0400 |
commit | c0090c4c85c27d1fa3d785c935501b7207cd2869 (patch) | |
tree | 0c843ea366adc52ccd7682a07e8a55c0e82af84d /kernel/locking | |
parent | 978315462d3ea3cf6cfacd34c563ec1eb02a3aa5 (diff) |
locking/lockdep: Remove the unused print_lock_trace() function
gcc warns that function print_lock_trace() is unused if
CONFIG_PROVE_LOCKING isn't set:
../kernel/locking/lockdep.c:2820:13: warning: ‘print_lock_trace’ defined but not used [-Wunused-function]
Rework so we remove the function if CONFIG_PROVE_LOCKING isn't set.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: will.deacon@arm.com
Fixes: c120bce78065 ("lockdep: Simplify stack trace handling")
Link: http://lkml.kernel.org/r/20190516191326.27003-1-anders.roxell@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking')
-rw-r--r-- | kernel/locking/lockdep.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 6b283b4f87aa..8d32ae7768a7 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c | |||
@@ -2818,10 +2818,6 @@ static inline int validate_chain(struct task_struct *curr, | |||
2818 | { | 2818 | { |
2819 | return 1; | 2819 | return 1; |
2820 | } | 2820 | } |
2821 | |||
2822 | static void print_lock_trace(struct lock_trace *trace, unsigned int spaces) | ||
2823 | { | ||
2824 | } | ||
2825 | #endif | 2821 | #endif |
2826 | 2822 | ||
2827 | /* | 2823 | /* |