diff options
| author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-12-20 07:33:54 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-03-02 00:33:58 -0500 |
| commit | cb26285df11fc6c6c2110abc8fcb8d02f6f96764 (patch) | |
| tree | 550c6b6cfd6d9753a68d0b58bf243bf423893d29 /arch/sparc | |
| parent | a38ecbbd0be025a6ecbbfd22d2575a5b46317117 (diff) | |
arch: sparc: kernel: traps_64.c: Remove some unused functions
Removes some functions that are not used anywhere:
do_fpdis_tl1() do_iae_tl1() do_dae_tl1() do_cee_tl1()
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
| -rw-r--r-- | arch/sparc/kernel/entry.h | 4 | ||||
| -rw-r--r-- | arch/sparc/kernel/traps_64.c | 28 |
2 files changed, 0 insertions, 32 deletions
diff --git a/arch/sparc/kernel/entry.h b/arch/sparc/kernel/entry.h index 88d322b67fac..07cc49e541f4 100644 --- a/arch/sparc/kernel/entry.h +++ b/arch/sparc/kernel/entry.h | |||
| @@ -98,11 +98,7 @@ void sun4v_do_mna(struct pt_regs *regs, | |||
| 98 | void do_privop(struct pt_regs *regs); | 98 | void do_privop(struct pt_regs *regs); |
| 99 | void do_privact(struct pt_regs *regs); | 99 | void do_privact(struct pt_regs *regs); |
| 100 | void do_cee(struct pt_regs *regs); | 100 | void do_cee(struct pt_regs *regs); |
| 101 | void do_cee_tl1(struct pt_regs *regs); | ||
| 102 | void do_dae_tl1(struct pt_regs *regs); | ||
| 103 | void do_iae_tl1(struct pt_regs *regs); | ||
| 104 | void do_div0_tl1(struct pt_regs *regs); | 101 | void do_div0_tl1(struct pt_regs *regs); |
| 105 | void do_fpdis_tl1(struct pt_regs *regs); | ||
| 106 | void do_fpieee_tl1(struct pt_regs *regs); | 102 | void do_fpieee_tl1(struct pt_regs *regs); |
| 107 | void do_fpother_tl1(struct pt_regs *regs); | 103 | void do_fpother_tl1(struct pt_regs *regs); |
| 108 | void do_ill_tl1(struct pt_regs *regs); | 104 | void do_ill_tl1(struct pt_regs *regs); |
diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c index a27651e866e7..1ef1af4cf96b 100644 --- a/arch/sparc/kernel/traps_64.c +++ b/arch/sparc/kernel/traps_64.c | |||
| @@ -2564,27 +2564,6 @@ void do_cee(struct pt_regs *regs) | |||
| 2564 | die_if_kernel("TL0: Cache Error Exception", regs); | 2564 | die_if_kernel("TL0: Cache Error Exception", regs); |
| 2565 | } | 2565 | } |
| 2566 | 2566 | ||
| 2567 | void do_cee_tl1(struct pt_regs *regs) | ||
| 2568 | { | ||
| 2569 | exception_enter(); | ||
| 2570 | dump_tl1_traplog((struct tl1_traplog *)(regs + 1)); | ||
| 2571 | die_if_kernel("TL1: Cache Error Exception", regs); | ||
| 2572 | } | ||
| 2573 | |||
| 2574 | void do_dae_tl1(struct pt_regs *regs) | ||
| 2575 | { | ||
| 2576 | exception_enter(); | ||
| 2577 | dump_tl1_traplog((struct tl1_traplog *)(regs + 1)); | ||
| 2578 | die_if_kernel("TL1: Data Access Exception", regs); | ||
| 2579 | } | ||
| 2580 | |||
| 2581 | void do_iae_tl1(struct pt_regs *regs) | ||
| 2582 | { | ||
| 2583 | exception_enter(); | ||
| 2584 | dump_tl1_traplog((struct tl1_traplog *)(regs + 1)); | ||
| 2585 | die_if_kernel("TL1: Instruction Access Exception", regs); | ||
| 2586 | } | ||
| 2587 | |||
| 2588 | void do_div0_tl1(struct pt_regs *regs) | 2567 | void do_div0_tl1(struct pt_regs *regs) |
| 2589 | { | 2568 | { |
| 2590 | exception_enter(); | 2569 | exception_enter(); |
| @@ -2592,13 +2571,6 @@ void do_div0_tl1(struct pt_regs *regs) | |||
| 2592 | die_if_kernel("TL1: DIV0 Exception", regs); | 2571 | die_if_kernel("TL1: DIV0 Exception", regs); |
| 2593 | } | 2572 | } |
| 2594 | 2573 | ||
| 2595 | void do_fpdis_tl1(struct pt_regs *regs) | ||
| 2596 | { | ||
| 2597 | exception_enter(); | ||
| 2598 | dump_tl1_traplog((struct tl1_traplog *)(regs + 1)); | ||
| 2599 | die_if_kernel("TL1: FPU Disabled", regs); | ||
| 2600 | } | ||
| 2601 | |||
| 2602 | void do_fpieee_tl1(struct pt_regs *regs) | 2574 | void do_fpieee_tl1(struct pt_regs *regs) |
| 2603 | { | 2575 | { |
| 2604 | exception_enter(); | 2576 | exception_enter(); |
