Skip to content

Commit 2ca60b4

Browse files
MingcongBaiKexyBiscuit
authored andcommitted
AOSCOS: MIPS: loongson3-memcpy: adapt to RAW_COPY_USER
Since commit 2260ea8 ("mips: switch to RAW_COPY_USER"), it is required to export `__raw_copy_from_user' and `__raw_copy_from_user', which are then referenced by certain kernel modules. Export these symbols under `__memcpy', also remove the export for the now- unused `__copy_user' symbol. Fixes: "AOSCOS: memcpy optimization for loongson-3" Signed-off-by: Mingcong Bai <[email protected]> Signed-off-by: Kexy Biscuit <[email protected]>
1 parent c0c10dc commit 2ca60b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/mips/loongson64/loongson3-memcpy.S

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ LEAF(memcpy) /* a0=dst a1=src a2=len */
119119
EXPORT_SYMBOL(memcpy)
120120
move v0, dst
121121
.L__memcpy:
122-
FEXPORT(__copy_user)
123-
EXPORT_SYMBOL(__copy_user)
122+
FEXPORT(__raw_copy_from_user)
123+
EXPORT_SYMBOL(__raw_copy_from_user)
124+
FEXPORT(__raw_copy_to_user)
125+
EXPORT_SYMBOL(__raw_copy_to_user)
124126
/* if less then 0x28 bytes */
125127
sltu t2, a2, 0x28
126128
andi t0, dst, 0xf

0 commit comments

Comments
 (0)