]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.6.6/arc-unwind-warn-only-once-if-dw2_unwind-is-disabled.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.6.6 / arc-unwind-warn-only-once-if-dw2_unwind-is-disabled.patch
CommitLineData
da38c99b
GKH
1From 9bd54517ee86cb164c734f72ea95aeba4804f10b Mon Sep 17 00:00:00 2001
2From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
3Date: Thu, 23 Jun 2016 11:00:39 +0300
4Subject: arc: unwind: warn only once if DW2_UNWIND is disabled
5
6From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
7
8commit 9bd54517ee86cb164c734f72ea95aeba4804f10b upstream.
9
10If CONFIG_ARC_DW2_UNWIND is disabled every time arc_unwind_core()
11gets called following message gets printed in debug console:
12----------------->8---------------
13CONFIG_ARC_DW2_UNWIND needs to be enabled
14----------------->8---------------
15
16That message makes sense if user indeed wants to see a backtrace or
17get nice function call-graphs in perf but what if user disabled
18unwinder for the purpose? Why pollute his debug console?
19
20So instead we'll warn user about possibly missing feature once and
21let him decide if that was what he or she really wanted.
22
23Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
24Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
25Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26
27---
28 arch/arc/kernel/stacktrace.c | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-)
30
31--- a/arch/arc/kernel/stacktrace.c
32+++ b/arch/arc/kernel/stacktrace.c
33@@ -142,7 +142,7 @@ arc_unwind_core(struct task_struct *tsk,
34 * prelogue is setup (callee regs saved and then fp set and not other
35 * way around
36 */
37- pr_warn("CONFIG_ARC_DW2_UNWIND needs to be enabled\n");
38+ pr_warn_once("CONFIG_ARC_DW2_UNWIND needs to be enabled\n");
39 return 0;
40
41 #endif