Commit 23130042 authored by Paul Burton's avatar Paul Burton Committed by Ralf Baechle

MIPS: Export csum functions alongside their definitions

Now that EXPORT_SYMBOL can be used from assembly source, move the
EXPORT_SYMBOL invocations for the csum_partial_* functions to be
alongside their definitions.
Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14512/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent aa4089e6
...@@ -70,11 +70,3 @@ EXPORT_SYMBOL(__strnlen_kernel_nocheck_asm); ...@@ -70,11 +70,3 @@ EXPORT_SYMBOL(__strnlen_kernel_nocheck_asm);
EXPORT_SYMBOL(__strnlen_kernel_asm); EXPORT_SYMBOL(__strnlen_kernel_asm);
EXPORT_SYMBOL(__strnlen_user_nocheck_asm); EXPORT_SYMBOL(__strnlen_user_nocheck_asm);
EXPORT_SYMBOL(__strnlen_user_asm); EXPORT_SYMBOL(__strnlen_user_asm);
#ifndef CONFIG_CPU_MIPSR6
EXPORT_SYMBOL(csum_partial);
EXPORT_SYMBOL(csum_partial_copy_nocheck);
EXPORT_SYMBOL(__csum_partial_copy_kernel);
EXPORT_SYMBOL(__csum_partial_copy_to_user);
EXPORT_SYMBOL(__csum_partial_copy_from_user);
#endif
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <asm/asm.h> #include <asm/asm.h>
#include <asm/asm-offsets.h> #include <asm/asm-offsets.h>
#include <asm/export.h>
#include <asm/regdef.h> #include <asm/regdef.h>
#ifdef CONFIG_64BIT #ifdef CONFIG_64BIT
...@@ -103,6 +104,7 @@ ...@@ -103,6 +104,7 @@
.set noreorder .set noreorder
.align 5 .align 5
LEAF(csum_partial) LEAF(csum_partial)
EXPORT_SYMBOL(csum_partial)
move sum, zero move sum, zero
move t7, zero move t7, zero
...@@ -460,6 +462,7 @@ LEAF(csum_partial) ...@@ -460,6 +462,7 @@ LEAF(csum_partial)
#endif #endif
.if \__nocheck == 1 .if \__nocheck == 1
FEXPORT(csum_partial_copy_nocheck) FEXPORT(csum_partial_copy_nocheck)
EXPORT_SYMBOL(csum_partial_copy_nocheck)
.endif .endif
move sum, zero move sum, zero
move odd, zero move odd, zero
...@@ -823,9 +826,12 @@ LEAF(csum_partial) ...@@ -823,9 +826,12 @@ LEAF(csum_partial)
.endm .endm
LEAF(__csum_partial_copy_kernel) LEAF(__csum_partial_copy_kernel)
EXPORT_SYMBOL(__csum_partial_copy_kernel)
#ifndef CONFIG_EVA #ifndef CONFIG_EVA
FEXPORT(__csum_partial_copy_to_user) FEXPORT(__csum_partial_copy_to_user)
EXPORT_SYMBOL(__csum_partial_copy_to_user)
FEXPORT(__csum_partial_copy_from_user) FEXPORT(__csum_partial_copy_from_user)
EXPORT_SYMBOL(__csum_partial_copy_from_user)
#endif #endif
__BUILD_CSUM_PARTIAL_COPY_USER LEGACY_MODE USEROP USEROP 1 __BUILD_CSUM_PARTIAL_COPY_USER LEGACY_MODE USEROP USEROP 1
END(__csum_partial_copy_kernel) END(__csum_partial_copy_kernel)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment