diff options
-rw-r--r-- | arch/x86/kernel/stacktrace.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/stacktrace.c b/arch/x86/kernel/stacktrace.c index ea54d029fe27..abc321d55870 100644 --- a/arch/x86/kernel/stacktrace.c +++ b/arch/x86/kernel/stacktrace.c | |||
@@ -26,8 +26,10 @@ static int save_stack_stack(void *data, char *name) | |||
26 | static void save_stack_address(void *data, unsigned long addr, int reliable) | 26 | static void save_stack_address(void *data, unsigned long addr, int reliable) |
27 | { | 27 | { |
28 | struct stack_trace *trace = data; | 28 | struct stack_trace *trace = data; |
29 | #ifdef CONFIG_FRAME_POINTER | ||
29 | if (!reliable) | 30 | if (!reliable) |
30 | return; | 31 | return; |
32 | #endif | ||
31 | if (trace->skip > 0) { | 33 | if (trace->skip > 0) { |
32 | trace->skip--; | 34 | trace->skip--; |
33 | return; | 35 | return; |
@@ -39,9 +41,11 @@ static void save_stack_address(void *data, unsigned long addr, int reliable) | |||
39 | static void | 41 | static void |
40 | save_stack_address_nosched(void *data, unsigned long addr, int reliable) | 42 | save_stack_address_nosched(void *data, unsigned long addr, int reliable) |
41 | { | 43 | { |
42 | struct stack_trace *trace = (struct stack_trace *)data; | 44 | struct stack_trace *trace = data; |
45 | #ifdef CONFIG_FRAME_POINTER | ||
43 | if (!reliable) | 46 | if (!reliable) |
44 | return; | 47 | return; |
48 | #endif | ||
45 | if (in_sched_functions(addr)) | 49 | if (in_sched_functions(addr)) |
46 | return; | 50 | return; |
47 | if (trace->skip > 0) { | 51 | if (trace->skip > 0) { |