]>
Commit | Line | Data |
---|---|---|
da38c99b GKH |
1 | From 9bd54517ee86cb164c734f72ea95aeba4804f10b Mon Sep 17 00:00:00 2001 |
2 | From: Alexey Brodkin <Alexey.Brodkin@synopsys.com> | |
3 | Date: Thu, 23 Jun 2016 11:00:39 +0300 | |
4 | Subject: arc: unwind: warn only once if DW2_UNWIND is disabled | |
5 | ||
6 | From: Alexey Brodkin <Alexey.Brodkin@synopsys.com> | |
7 | ||
8 | commit 9bd54517ee86cb164c734f72ea95aeba4804f10b upstream. | |
9 | ||
10 | If CONFIG_ARC_DW2_UNWIND is disabled every time arc_unwind_core() | |
11 | gets called following message gets printed in debug console: | |
12 | ----------------->8--------------- | |
13 | CONFIG_ARC_DW2_UNWIND needs to be enabled | |
14 | ----------------->8--------------- | |
15 | ||
16 | That message makes sense if user indeed wants to see a backtrace or | |
17 | get nice function call-graphs in perf but what if user disabled | |
18 | unwinder for the purpose? Why pollute his debug console? | |
19 | ||
20 | So instead we'll warn user about possibly missing feature once and | |
21 | let him decide if that was what he or she really wanted. | |
22 | ||
23 | Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> | |
24 | Signed-off-by: Vineet Gupta <vgupta@synopsys.com> | |
25 | Signed-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 |