summaryrefslogtreecommitdiff
path: root/arch/csky
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-03-28 02:36:31 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2021-03-28 02:36:31 +0300
commita0d8d552783b3fec78c775a57fa7e2b87e16e6ca (patch)
tree42a2e1e7fb42ff3f346b1a47d678b9da25ca26b4 /arch/csky
parenteecf77e097d27d26fe289d172b2e98433a8989f4 (diff)
downloadlinux-a0d8d552783b3fec78c775a57fa7e2b87e16e6ca.tar.xz
whack-a-mole: kill strlen_user() (again)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/csky')
-rw-r--r--arch/csky/include/asm/uaccess.h2
-rw-r--r--arch/csky/lib/usercopy.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/arch/csky/include/asm/uaccess.h b/arch/csky/include/asm/uaccess.h
index 3dec272e1fa3..4216a2a9415c 100644
--- a/arch/csky/include/asm/uaccess.h
+++ b/arch/csky/include/asm/uaccess.h
@@ -397,8 +397,6 @@ long __strncpy_from_user(char *dst, const char *src, long count);
*/
long strnlen_user(const char *src, long n);
-#define strlen_user(str) strnlen_user(str, 32767)
-
struct exception_table_entry {
unsigned long insn;
unsigned long nextinsn;
diff --git a/arch/csky/lib/usercopy.c b/arch/csky/lib/usercopy.c
index 3c9bd645e643..f45b707f059f 100644
--- a/arch/csky/lib/usercopy.c
+++ b/arch/csky/lib/usercopy.c
@@ -116,7 +116,7 @@ long strncpy_from_user(char *dst, const char *src, long count)
EXPORT_SYMBOL(strncpy_from_user);
/*
- * strlen_user: - Get the size of a string in user space.
+ * strnlen_user: - Get the size of a string in user space.
* @str: The string to measure.
* @n: The maximum valid length
*