diff options
Diffstat (limited to 'arch/s390/kernel/dumpstack.c')
-rw-r--r-- | arch/s390/kernel/dumpstack.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/s390/kernel/dumpstack.c b/arch/s390/kernel/dumpstack.c index 4bebe72b7780..34345c0a3c46 100644 --- a/arch/s390/kernel/dumpstack.c +++ b/arch/s390/kernel/dumpstack.c | |||
@@ -87,30 +87,6 @@ void dump_trace(dump_trace_func_t func, void *data, struct task_struct *task, | |||
87 | } | 87 | } |
88 | EXPORT_SYMBOL_GPL(dump_trace); | 88 | EXPORT_SYMBOL_GPL(dump_trace); |
89 | 89 | ||
90 | struct return_address_data { | ||
91 | unsigned long address; | ||
92 | int depth; | ||
93 | }; | ||
94 | |||
95 | static int __return_address(void *data, unsigned long address, int reliable) | ||
96 | { | ||
97 | struct return_address_data *rd = data; | ||
98 | |||
99 | if (rd->depth--) | ||
100 | return 0; | ||
101 | rd->address = address; | ||
102 | return 1; | ||
103 | } | ||
104 | |||
105 | unsigned long return_address(int depth) | ||
106 | { | ||
107 | struct return_address_data rd = { .depth = depth + 2 }; | ||
108 | |||
109 | dump_trace(__return_address, &rd, NULL, current_stack_pointer()); | ||
110 | return rd.address; | ||
111 | } | ||
112 | EXPORT_SYMBOL_GPL(return_address); | ||
113 | |||
114 | static int show_address(void *data, unsigned long address, int reliable) | 90 | static int show_address(void *data, unsigned long address, int reliable) |
115 | { | 91 | { |
116 | if (reliable) | 92 | if (reliable) |