patch-2.2.19 linux/arch/alpha/lib/strlen_user.S

Next file: linux/arch/alpha/mm/extable.c
Previous file: linux/arch/alpha/kernel/traps.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/arch/alpha/lib/strlen_user.S linux/arch/alpha/lib/strlen_user.S
@@ -28,17 +28,9 @@
 	.set noat
 	.text
 
-	.globl __strlen_user
-	.ent __strlen_user
-	.frame sp, 0, ra
-
-	.align 3
-__strlen_user:
-	ldah	a1, 32767(zero)	# do not use plain strlen_user() for strings
-				# that might be almost 2 GB long; you should
-				# be using strnlen_user() instead
-
 	.globl __strnlen_user
+	.ent __strnlen_user
+	.frame sp, 0, ra
 
 	.align 3
 __strnlen_user:
@@ -89,4 +81,4 @@
 	subq	a1, t2, v0
 	ret
 
-	.end __strlen_user
+	.end __strnlen_user

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)