Skip to content

Commit 29830c1

Browse files
paulburtonralfbaechle
authored andcommitted
MIPS: Export _save_fp & _save_msa alongside their definitions
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>
1 parent 0888958 commit 29830c1

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

arch/mips/kernel/mips_ksyms.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ extern long __strnlen_kernel_asm(const char *s);
3434
extern long __strnlen_user_nocheck_asm(const char *s);
3535
extern long __strnlen_user_asm(const char *s);
3636

37-
/*
38-
* Core architecture code
39-
*/
40-
EXPORT_SYMBOL_GPL(_save_fp);
41-
#ifdef CONFIG_CPU_HAS_MSA
42-
EXPORT_SYMBOL_GPL(_save_msa);
43-
#endif
44-
4537
/*
4638
* String functions
4739
*/

arch/mips/kernel/r2300_switch.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313
#include <asm/asm.h>
1414
#include <asm/cachectl.h>
15+
#include <asm/export.h>
1516
#include <asm/fpregdef.h>
1617
#include <asm/mipsregs.h>
1718
#include <asm/asm-offsets.h>
@@ -72,6 +73,7 @@ LEAF(resume)
7273
* Save a thread's fp context.
7374
*/
7475
LEAF(_save_fp)
76+
EXPORT_SYMBOL(_save_fp)
7577
fpu_save_single a0, t1 # clobbers t1
7678
jr ra
7779
END(_save_fp)

arch/mips/kernel/r4k_switch.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313
#include <asm/asm.h>
1414
#include <asm/cachectl.h>
15+
#include <asm/export.h>
1516
#include <asm/fpregdef.h>
1617
#include <asm/mipsregs.h>
1718
#include <asm/asm-offsets.h>
@@ -75,6 +76,7 @@
7576
* Save a thread's fp context.
7677
*/
7778
LEAF(_save_fp)
79+
EXPORT_SYMBOL(_save_fp)
7880
#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2) || \
7981
defined(CONFIG_CPU_MIPS32_R6)
8082
mfc0 t0, CP0_STATUS
@@ -101,6 +103,7 @@ LEAF(_restore_fp)
101103
* Save a thread's MSA vector context.
102104
*/
103105
LEAF(_save_msa)
106+
EXPORT_SYMBOL(_save_msa)
104107
msa_save_all a0
105108
jr ra
106109
END(_save_msa)

0 commit comments

Comments
 (0)