summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/fpu.h
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2014-02-05 21:05:44 +0100
committerRalf Baechle <ralf@linux-mips.org>2014-02-06 13:42:43 +0100
commit97b8b16bfcb7f5ccc1b3c10c08580f9f1acb61ac (patch)
tree0437a31eb466b1158efdde7d0876a7533404b1bb /arch/mips/include/asm/fpu.h
parentMIPS: Wire up sched_setattr/sched_getattr syscalls (diff)
downloadlinux-97b8b16bfcb7f5ccc1b3c10c08580f9f1acb61ac.tar.xz
linux-97b8b16bfcb7f5ccc1b3c10c08580f9f1acb61ac.zip
MIPS: fpu.h: Fix build when CONFIG_BUG is not set
__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>
Diffstat (limited to 'arch/mips/include/asm/fpu.h')
-rw-r--r--arch/mips/include/asm/fpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/fpu.h b/arch/mips/include/asm/fpu.h
index cfe092fc720d..6b9749540edf 100644
--- a/arch/mips/include/asm/fpu.h
+++ b/arch/mips/include/asm/fpu.h
@@ -74,6 +74,8 @@ static inline int __enable_fpu(enum fpu_mode mode)
default:
BUG();
}
+
+ return SIGFPE;
}
#define __disable_fpu() \