summaryrefslogtreecommitdiff
path: root/arch/h8300/lib/strncpy.S
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-05-15 00:57:16 +0300
committerArnd Bergmann <arnd@arndb.de>2021-07-23 15:40:00 +0300
commit2f69b04a88687626b044a66661c570ca0ca6a0fc (patch)
treee82cd8981f98bec21d7b6d25d1e427bba5507370 /arch/h8300/lib/strncpy.S
parentf27180dd63e1e6eca3230b9d3fdcc33564a81117 (diff)
downloadlinux-2f69b04a88687626b044a66661c570ca0ca6a0fc.tar.xz
h8300: remove stale strncpy_from_user
This function is never called because h8300 uses the asm-generic inline function version. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/h8300/lib/strncpy.S')
-rw-r--r--arch/h8300/lib/strncpy.S35
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/h8300/lib/strncpy.S b/arch/h8300/lib/strncpy.S
deleted file mode 100644
index 8b65d7c4727b..000000000000
--- a/arch/h8300/lib/strncpy.S
+++ /dev/null
@@ -1,35 +0,0 @@
-;;; SPDX-License-Identifier: GPL-2.0
-;;; strncpy.S
-
-#include <asm/linkage.h>
-
- .text
-.global strncpy_from_user
-
-;;; long strncpy_from_user(void *to, void *from, size_t n)
-strncpy_from_user:
- mov.l er2,er2
- bne 1f
- sub.l er0,er0
- rts
-1:
- mov.l er4,@-sp
- sub.l er3,er3
-2:
- mov.b @er1+,r4l
- mov.b r4l,@er0
- adds #1,er0
- beq 3f
- inc.l #1,er3
- dec.l #1,er2
- bne 2b
-3:
- dec.l #1,er2
-4:
- mov.b r4l,@er0
- adds #1,er0
- dec.l #1,er2
- bne 4b
- mov.l er3,er0
- mov.l @sp+,er4
- rts