summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/strncmp_32.S
diff options
context:
space:
mode:
authorDavid S. Miller2012-05-12 05:33:22 +0200
committerDavid S. Miller2012-05-12 05:33:22 +0200
commit8695c37d06721c581385725eb80ba4e6d6bdf73f (patch)
tree072f37f58590aea8ca880b6175d127809edd4cec /arch/sparc/lib/strncmp_32.S
parentsparc32: Remove inline strncmp "optimization" for constant counts. (diff)
downloadkernel-qcow2-linux-8695c37d06721c581385725eb80ba4e6d6bdf73f.tar.gz
kernel-qcow2-linux-8695c37d06721c581385725eb80ba4e6d6bdf73f.tar.xz
kernel-qcow2-linux-8695c37d06721c581385725eb80ba4e6d6bdf73f.zip
sparc: Convert some assembler over to linakge.h's ENTRY/ENDPROC
Use those, instead of doing it all by hand. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib/strncmp_32.S')
-rw-r--r--arch/sparc/lib/strncmp_32.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sparc/lib/strncmp_32.S b/arch/sparc/lib/strncmp_32.S
index 1476f574db22..c0d1b568c1c5 100644
--- a/arch/sparc/lib/strncmp_32.S
+++ b/arch/sparc/lib/strncmp_32.S
@@ -3,10 +3,10 @@
* generic strncmp routine.
*/
+#include <linux/linkage.h>
+
.text
- .align 4
- .global strncmp
-strncmp:
+ENTRY(strncmp)
mov %o0, %g3
mov 0, %o3
@@ -115,3 +115,4 @@ strncmp:
and %g2, 0xff, %o0
retl
sub %o3, %o0, %o0
+ENDPROC(strncmp)