diff options
author | David S. Miller <davem@davemloft.net> | 2008-02-19 23:42:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-19 23:42:11 -0500 |
commit | 5bbdb48d4c90f860861036978618ee1c7cec9d38 (patch) | |
tree | e8c1129401a7ce71aa0bee7a76ea6000ac43d0b3 /arch | |
parent | c3c25240312d92a088a9981b620e876e960313f8 (diff) |
[SPARC64]: Kill show_stackframe{,32}().
Noticed via sparse:
arch/sparc64/kernel/process.c:215:6: warning: symbol 'show_stackframe' was not declared. Should it be static?
arch/sparc64/kernel/process.c:243:6: warning: symbol 'show_stackframe32' was not declared. Should it be static?
It is totally unused.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc64/kernel/process.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index 75c1408a664f..548af5d1f2c4 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c | |||
@@ -212,62 +212,6 @@ static void show_regwindow(struct pt_regs *regs) | |||
212 | print_symbol("I7: <%s>\n", rwk->ins[7]); | 212 | print_symbol("I7: <%s>\n", rwk->ins[7]); |
213 | } | 213 | } |
214 | 214 | ||
215 | void show_stackframe(struct sparc_stackf *sf) | ||
216 | { | ||
217 | unsigned long size; | ||
218 | unsigned long *stk; | ||
219 | int i; | ||
220 | |||
221 | printk("l0: %016lx l1: %016lx l2: %016lx l3: %016lx\n" | ||
222 | "l4: %016lx l5: %016lx l6: %016lx l7: %016lx\n", | ||
223 | sf->locals[0], sf->locals[1], sf->locals[2], sf->locals[3], | ||
224 | sf->locals[4], sf->locals[5], sf->locals[6], sf->locals[7]); | ||
225 | printk("i0: %016lx i1: %016lx i2: %016lx i3: %016lx\n" | ||
226 | "i4: %016lx i5: %016lx fp: %016lx ret_pc: %016lx\n", | ||
227 | sf->ins[0], sf->ins[1], sf->ins[2], sf->ins[3], | ||
228 | sf->ins[4], sf->ins[5], (unsigned long)sf->fp, sf->callers_pc); | ||
229 | printk("sp: %016lx x0: %016lx x1: %016lx x2: %016lx\n" | ||
230 | "x3: %016lx x4: %016lx x5: %016lx xx: %016lx\n", | ||
231 | (unsigned long)sf->structptr, sf->xargs[0], sf->xargs[1], | ||
232 | sf->xargs[2], sf->xargs[3], sf->xargs[4], sf->xargs[5], | ||
233 | sf->xxargs[0]); | ||
234 | size = ((unsigned long)sf->fp) - ((unsigned long)sf); | ||
235 | size -= STACKFRAME_SZ; | ||
236 | stk = (unsigned long *)((unsigned long)sf + STACKFRAME_SZ); | ||
237 | i = 0; | ||
238 | do { | ||
239 | printk("s%d: %016lx\n", i++, *stk++); | ||
240 | } while ((size -= sizeof(unsigned long))); | ||
241 | } | ||
242 | |||
243 | void show_stackframe32(struct sparc_stackf32 *sf) | ||
244 | { | ||
245 | unsigned long size; | ||
246 | unsigned *stk; | ||
247 | int i; | ||
248 | |||
249 | printk("l0: %08x l1: %08x l2: %08x l3: %08x\n", | ||
250 | sf->locals[0], sf->locals[1], sf->locals[2], sf->locals[3]); | ||
251 | printk("l4: %08x l5: %08x l6: %08x l7: %08x\n", | ||
252 | sf->locals[4], sf->locals[5], sf->locals[6], sf->locals[7]); | ||
253 | printk("i0: %08x i1: %08x i2: %08x i3: %08x\n", | ||
254 | sf->ins[0], sf->ins[1], sf->ins[2], sf->ins[3]); | ||
255 | printk("i4: %08x i5: %08x fp: %08x ret_pc: %08x\n", | ||
256 | sf->ins[4], sf->ins[5], sf->fp, sf->callers_pc); | ||
257 | printk("sp: %08x x0: %08x x1: %08x x2: %08x\n" | ||
258 | "x3: %08x x4: %08x x5: %08x xx: %08x\n", | ||
259 | sf->structptr, sf->xargs[0], sf->xargs[1], | ||
260 | sf->xargs[2], sf->xargs[3], sf->xargs[4], sf->xargs[5], | ||
261 | sf->xxargs[0]); | ||
262 | size = ((unsigned long)sf->fp) - ((unsigned long)sf); | ||
263 | size -= STACKFRAME32_SZ; | ||
264 | stk = (unsigned *)((unsigned long)sf + STACKFRAME32_SZ); | ||
265 | i = 0; | ||
266 | do { | ||
267 | printk("s%d: %08x\n", i++, *stk++); | ||
268 | } while ((size -= sizeof(unsigned))); | ||
269 | } | ||
270 | |||
271 | #ifdef CONFIG_SMP | 215 | #ifdef CONFIG_SMP |
272 | static DEFINE_SPINLOCK(regdump_lock); | 216 | static DEFINE_SPINLOCK(regdump_lock); |
273 | #endif | 217 | #endif |