MIPS: Export memcpy & memset functions alongside their definitions
Now that EXPORT_SYMBOL can be used from assembly source, move the EXPORT_SYMBOL invocations for the memcpy & memset functions & variants thereof 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/14514/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
d6cb671589
commit
576a2f0c5c
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
#include <asm/asm.h>
|
||||
#include <asm/asm-offsets.h>
|
||||
#include <asm/export.h>
|
||||
#include <asm/regdef.h>
|
||||
|
||||
#if LONGSIZE == 4
|
||||
@@ -270,6 +271,7 @@
|
||||
*/
|
||||
|
||||
LEAF(memset)
|
||||
EXPORT_SYMBOL(memset)
|
||||
beqz a1, 1f
|
||||
move v0, a0 /* result */
|
||||
|
||||
@@ -285,13 +287,16 @@ LEAF(memset)
|
||||
1:
|
||||
#ifndef CONFIG_EVA
|
||||
FEXPORT(__bzero)
|
||||
EXPORT_SYMBOL(__bzero)
|
||||
#else
|
||||
FEXPORT(__bzero_kernel)
|
||||
EXPORT_SYMBOL(__bzero_kernel)
|
||||
#endif
|
||||
__BUILD_BZERO LEGACY_MODE
|
||||
|
||||
#ifdef CONFIG_EVA
|
||||
LEAF(__bzero)
|
||||
EXPORT_SYMBOL(__bzero)
|
||||
__BUILD_BZERO EVA_MODE
|
||||
END(__bzero)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user