Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9260/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
+[james.hogan@imgtec.com: Only export when CPU_R4K_FPU=y prior to v3.16,
+ so as not to break the Octeon build which excludes FPU support. KVM
+ depends on MIPS32r2 anyway.]
+Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- arch/mips/kernel/mips_ksyms.c | 6 ++++++
- 1 file changed, 6 insertions(+)
+ arch/mips/kernel/mips_ksyms.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
--- a/arch/mips/kernel/mips_ksyms.c
+++ b/arch/mips/kernel/mips_ksyms.c
extern void *__bzero(void *__s, size_t __count);
extern long __strncpy_from_user_nocheck_asm(char *__to,
-@@ -26,6 +27,11 @@ extern long __strnlen_user_nocheck_asm(c
+@@ -26,6 +27,13 @@ extern long __strnlen_user_nocheck_asm(c
extern long __strnlen_user_asm(const char *s);
/*
+ * Core architecture code
+ */
++#ifdef CONFIG_CPU_R4K_FPU
+EXPORT_SYMBOL_GPL(_save_fp);
++#endif
+
+/*
* String functions
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9260/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
+[james.hogan@imgtec.com: Only export when CPU_R4K_FPU=y prior to v3.16,
+ so as not to break the Octeon build which excludes FPU support. KVM
+ depends on MIPS32r2 anyway.]
+Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- arch/mips/kernel/mips_ksyms.c | 6 ++++++
- 1 file changed, 6 insertions(+)
+ arch/mips/kernel/mips_ksyms.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
--- a/arch/mips/kernel/mips_ksyms.c
+++ b/arch/mips/kernel/mips_ksyms.c
extern void *__bzero(void *__s, size_t __count);
extern long __strncpy_from_user_nocheck_asm(char *__to,
-@@ -26,6 +27,11 @@ extern long __strnlen_user_nocheck_asm(c
+@@ -26,6 +27,13 @@ extern long __strnlen_user_nocheck_asm(c
extern long __strnlen_user_asm(const char *s);
/*
+ * Core architecture code
+ */
++#ifdef CONFIG_CPU_R4K_FPU
+EXPORT_SYMBOL_GPL(_save_fp);
++#endif
+
+/*
* String functions