]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MIPS: fpu.h: Fix build when CONFIG_BUG is not set
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 5 Feb 2014 20:05:44 +0000 (22:05 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 6 Feb 2014 12:42:43 +0000 (13:42 +0100)
__enable_fpu produces a build failure when CONFIG_BUG is not set:

In file included from arch/mips/kernel/cpu-probe.c:24:0:
arch/mips/include/asm/fpu.h: In function '__enable_fpu':
arch/mips/include/asm/fpu.h:77:1: error: control reaches end of non-void function [-Werror=return-type]

This is regression introduced in 3.14-rc1. Fix that.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Paul Burton <paul.burton@imgtec.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6504/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/fpu.h

index cfe092fc720d021ab7636276e2f0ea9eb4a4507c..6b9749540edffedf8903b0384cb8a505d1054edd 100644 (file)
@@ -74,6 +74,8 @@ static inline int __enable_fpu(enum fpu_mode mode)
        default:
                BUG();
        }
+
+       return SIGFPE;
 }
 
 #define __disable_fpu()                                                        \