Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a0d8d552
Commit
a0d8d552
authored
Mar 27, 2021
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whack-a-mole: kill strlen_user() (again)
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
eecf77e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
6 deletions
+1
-6
arch/csky/include/asm/uaccess.h
arch/csky/include/asm/uaccess.h
+0
-2
arch/csky/lib/usercopy.c
arch/csky/lib/usercopy.c
+1
-1
arch/nds32/include/asm/uaccess.h
arch/nds32/include/asm/uaccess.h
+0
-1
arch/nios2/include/asm/uaccess.h
arch/nios2/include/asm/uaccess.h
+0
-1
arch/riscv/include/asm/uaccess.h
arch/riscv/include/asm/uaccess.h
+0
-1
No files found.
arch/csky/include/asm/uaccess.h
View file @
a0d8d552
...
...
@@ -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
;
...
...
arch/csky/lib/usercopy.c
View file @
a0d8d552
...
...
@@ -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.
* str
n
len_user: - Get the size of a string in user space.
* @str: The string to measure.
* @n: The maximum valid length
*
...
...
arch/nds32/include/asm/uaccess.h
View file @
a0d8d552
...
...
@@ -260,7 +260,6 @@ do { \
extern
unsigned
long
__arch_clear_user
(
void
__user
*
addr
,
unsigned
long
n
);
extern
long
strncpy_from_user
(
char
*
dest
,
const
char
__user
*
src
,
long
count
);
extern
__must_check
long
strlen_user
(
const
char
__user
*
str
);
extern
__must_check
long
strnlen_user
(
const
char
__user
*
str
,
long
n
);
extern
unsigned
long
__arch_copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
n
);
...
...
arch/nios2/include/asm/uaccess.h
View file @
a0d8d552
...
...
@@ -83,7 +83,6 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n);
extern
long
strncpy_from_user
(
char
*
__to
,
const
char
__user
*
__from
,
long
__len
);
extern
__must_check
long
strlen_user
(
const
char
__user
*
str
);
extern
__must_check
long
strnlen_user
(
const
char
__user
*
s
,
long
n
);
/* Optimized macros */
...
...
arch/riscv/include/asm/uaccess.h
View file @
a0d8d552
...
...
@@ -372,7 +372,6 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n)
extern
long
strncpy_from_user
(
char
*
dest
,
const
char
__user
*
src
,
long
count
);
extern
long
__must_check
strlen_user
(
const
char
__user
*
str
);
extern
long
__must_check
strnlen_user
(
const
char
__user
*
str
,
long
n
);
extern
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment