MIPS: Export _save_fp & _save_msa alongside their definitions
authorPaul Burton <paul.burton@imgtec.com>
Mon, 7 Nov 2016 11:14:10 +0000 (11:14 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jan 2017 15:34:49 +0000 (16:34 +0100)
Now that EXPORT_SYMBOL can be used from assembly source, move the
EXPORT_SYMBOL invocations for _save_fp & _save_msa to be alongside their
definitions.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14509/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/mips_ksyms.c
arch/mips/kernel/r2300_switch.S
arch/mips/kernel/r4k_switch.S

index 93aeec705a6eca9fb26e0e9f10da09b97b4a90d7..a7aca7b8097d5da1623ce70a2f202db1d169a774 100644 (file)
@@ -34,14 +34,6 @@ extern long __strnlen_kernel_asm(const char *s);
 extern long __strnlen_user_nocheck_asm(const char *s);
 extern long __strnlen_user_asm(const char *s);
 
-/*
- * Core architecture code
- */
-EXPORT_SYMBOL_GPL(_save_fp);
-#ifdef CONFIG_CPU_HAS_MSA
-EXPORT_SYMBOL_GPL(_save_msa);
-#endif
-
 /*
  * String functions
  */
index ac27ef7d4d0ebd8be86798d8191e32c720263625..1049eeafd97d79ac8198e2666987b69f2deb36ba 100644 (file)
@@ -12,6 +12,7 @@
  */
 #include <asm/asm.h>
 #include <asm/cachectl.h>
+#include <asm/export.h>
 #include <asm/fpregdef.h>
 #include <asm/mipsregs.h>
 #include <asm/asm-offsets.h>
@@ -72,6 +73,7 @@ LEAF(resume)
  * Save a thread's fp context.
  */
 LEAF(_save_fp)
+EXPORT_SYMBOL(_save_fp)
        fpu_save_single a0, t1                  # clobbers t1
        jr      ra
        END(_save_fp)
index 2f0a3b223c97b11276492e4d763a8a5c00a75d0f..758577861523059a3e2e1f83e947121df094877a 100644 (file)
@@ -12,6 +12,7 @@
  */
 #include <asm/asm.h>
 #include <asm/cachectl.h>
+#include <asm/export.h>
 #include <asm/fpregdef.h>
 #include <asm/mipsregs.h>
 #include <asm/asm-offsets.h>
@@ -75,6 +76,7 @@
  * Save a thread's fp context.
  */
 LEAF(_save_fp)
+EXPORT_SYMBOL(_save_fp)
 #if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2) || \
                defined(CONFIG_CPU_MIPS32_R6)
        mfc0    t0, CP0_STATUS
@@ -101,6 +103,7 @@ LEAF(_restore_fp)
  * Save a thread's MSA vector context.
  */
 LEAF(_save_msa)
+EXPORT_SYMBOL(_save_msa)
        msa_save_all    a0
        jr      ra
        END(_save_msa)