aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/math-emu/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/math-emu/math.c')
-rw-r--r--arch/powerpc/math-emu/math.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/math-emu/math.c b/arch/powerpc/math-emu/math.c
index cefb4f2f4039..3fe8e35287a1 100644
--- a/arch/powerpc/math-emu/math.c
+++ b/arch/powerpc/math-emu/math.c
@@ -154,7 +154,6 @@ FLOATFUNC(fsqrts);
154#define XEU 15 154#define XEU 15
155#define XFLB 10 155#define XFLB 10
156 156
157#ifdef CONFIG_MATH_EMULATION
158static int 157static int
159record_exception(struct pt_regs *regs, int eflag) 158record_exception(struct pt_regs *regs, int eflag)
160{ 159{
@@ -212,7 +211,6 @@ record_exception(struct pt_regs *regs, int eflag)
212 211
213 return (fpscr & FPSCR_FEX) ? 1 : 0; 212 return (fpscr & FPSCR_FEX) ? 1 : 0;
214} 213}
215#endif /* CONFIG_MATH_EMULATION */
216 214
217int 215int
218do_mathemu(struct pt_regs *regs) 216do_mathemu(struct pt_regs *regs)
@@ -222,11 +220,9 @@ do_mathemu(struct pt_regs *regs)
222 signed short sdisp; 220 signed short sdisp;
223 u32 insn = 0; 221 u32 insn = 0;
224 int idx = 0; 222 int idx = 0;
225#ifdef CONFIG_MATH_EMULATION
226 int (*func)(void *, void *, void *, void *); 223 int (*func)(void *, void *, void *, void *);
227 int type = 0; 224 int type = 0;
228 int eflag, trap; 225 int eflag, trap;
229#endif
230 226
231 if (get_user(insn, (u32 *)pc)) 227 if (get_user(insn, (u32 *)pc))
232 return -EFAULT; 228 return -EFAULT;