Skip to contentSkip to conversation

+ sh-remove-unused-do_fpu_error.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Feb 19, 2014 SuperH

lore
Share & tools
lore
#0 lore raw

Subject: + sh-remove-unused-do_fpu_error.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 19 Feb 2014 13:01:57 -0800

The patch titled
Subject: sh: remove unused do_fpu_error
has been added to the -mm tree. Its filename is
sh-remove-unused-do_fpu_error.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/sh-remove-unused-do_fpu_error.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/sh-remove-unused-do_fpu_error.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Bobby Bingham <[email protected]>
Subject: sh: remove unused do_fpu_error

This does not appear to have been used since 74d99a5e26222 ("sh: SH-2A FPU support") in 2007.

---

 arch/sh/math-emu/math.c |   18 ------------------
 1 file changed, 18 deletions(-)
arch/sh/math-emu/math.c renamed from arch/sh/math-emu/math.c~sh-remove-unused-do_fpu_error +0 -17
diff -puN arch/sh/math-emu/math.c~sh-remove-unused-do_fpu_error arch/sh/math-emu/math.c
@@ -574,24 +574,6 @@ static int ieee_fpe_handler(struct pt_re
 	return 0;
 }
 
-asmlinkage void do_fpu_error(unsigned long r4, unsigned long r5,
-			     unsigned long r6, unsigned long r7,
-			     struct pt_regs regs)
-{
-	struct task_struct *tsk = current;
-	siginfo_t info;
-
-	if (ieee_fpe_handler (&regs))
-		return;
-
-	regs.pc += 2;
-	info.si_signo = SIGFPE;
-	info.si_errno = 0;
-	info.si_code = FPE_FLTINV;
-	info.si_addr = (void __user *)regs.pc;
-	force_sig_info(SIGFPE, &info, tsk);
-}