Skip to contentSkip to conversation

MIPS: octeon: Add __raw_copy_[from|to|in]_user symbols

PATCH In review Thomas Bogendoerfer 2 participants 3 messages Apr 8, 2021 – Apr 9, 2021 MIPS

lore
Share & tools
lore

Thomas Bogendoerfer

author maintainer
#0 lore raw

PATCH 1/1 MIPS: octeon: Add __raw_copy_[from|to|in]_user symbols

Cavium Octeon has it's own memcpy implementation and also need the change done in commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs").

Fixes 04324f44cb69 ("MIPS: Remove get_fs/set_fs")
---
 arch/mips/cavium-octeon/octeon-memcpy.S | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
arch/mips/cavium-octeon/octeon-memcpy.S +6 -2
index 0a7c9834b81c..600d018cf354 100644
@@ -150,8 +150,12 @@ LEAF(memcpy)					/* a0=dst a1=src a2=len */
 EXPORT_SYMBOL(memcpy)
 	move	v0, dst				/* return value */
 __memcpy:
-FEXPORT(__copy_user)
-EXPORT_SYMBOL(__copy_user)
+FEXPORT(__raw_copy_from_user)
+EXPORT_SYMBOL(__raw_copy_from_user)
+FEXPORT(__raw_copy_to_user)
+EXPORT_SYMBOL(__raw_copy_to_user)
+FEXPORT(__raw_copy_in_user)
+EXPORT_SYMBOL(__raw_copy_in_user)
 	/*
 	 * Note: dst & src may be unaligned, len may be 0
 	 * Temps
Signature · 1 line
2.29.2
author maintainer
#2 lore raw
Quoted 7 lines · Sergei Shtylyov

Hello!

Quoted 1 line · Thomas Bogendoerfer

Cavium Octeon has it's own memcpy implementation and also need the change

   Its. :-)

applied (with typo fixed) to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]