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
8f3ba02d
Commit
8f3ba02d
authored
Apr 07, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mips: get rid of unused __strnlen_user()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
10503bf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
38 deletions
+0
-38
arch/mips/include/asm/uaccess.h
arch/mips/include/asm/uaccess.h
+0
-32
arch/mips/lib/strnlen_user.S
arch/mips/lib/strnlen_user.S
+0
-6
No files found.
arch/mips/include/asm/uaccess.h
View file @
8f3ba02d
...
...
@@ -1019,38 +1019,6 @@ strncpy_from_user(char *__to, const char __user *__from, long __len)
return
res
;
}
extern
long
__strnlen_kernel_nocheck_asm
(
const
char
__user
*
s
,
long
n
);
extern
long
__strnlen_user_nocheck_asm
(
const
char
__user
*
s
,
long
n
);
/* Returns: 0 if bad, string length+1 (memory size) of string if ok */
static
inline
long
__strnlen_user
(
const
char
__user
*
s
,
long
n
)
{
long
res
;
if
(
eva_kernel_access
())
{
__asm__
__volatile__
(
"move
\t
$4, %1
\n\t
"
"move
\t
$5, %2
\n\t
"
__MODULE_JAL
(
__strnlen_kernel_nocheck_asm
)
"move
\t
%0, $2"
:
"=r"
(
res
)
:
"r"
(
s
),
"r"
(
n
)
:
"$2"
,
"$4"
,
"$5"
,
__UA_t0
,
"$31"
);
}
else
{
might_fault
();
__asm__
__volatile__
(
"move
\t
$4, %1
\n\t
"
"move
\t
$5, %2
\n\t
"
__MODULE_JAL
(
__strnlen_user_nocheck_asm
)
"move
\t
%0, $2"
:
"=r"
(
res
)
:
"r"
(
s
),
"r"
(
n
)
:
"$2"
,
"$4"
,
"$5"
,
__UA_t0
,
"$31"
);
}
return
res
;
}
extern
long
__strnlen_kernel_asm
(
const
char
__user
*
s
,
long
n
);
extern
long
__strnlen_user_asm
(
const
char
__user
*
s
,
long
n
);
...
...
arch/mips/lib/strnlen_user.S
View file @
8f3ba02d
...
...
@@ -32,7 +32,6 @@ LEAF(__strnlen_\func\()_asm)
and
v0
,
a0
bnez
v0
,
.
Lfault
\
@
FEXPORT
(
__strnlen_
\
func
\()
_nocheck_asm
)
move
v0
,
a0
PTR_ADDU
a1
,
a0
#
stop
pointer
1
:
...
...
@@ -68,16 +67,12 @@ FEXPORT(__strnlen_\func\()_nocheck_asm)
#ifndef CONFIG_EVA
/
*
Set
aliases
*/
.
global
__strnlen_user_asm
.
global
__strnlen_user_nocheck_asm
.
set
__strnlen_user_asm
,
__strnlen_kernel_asm
.
set
__strnlen_user_nocheck_asm
,
__strnlen_kernel_nocheck_asm
EXPORT_SYMBOL
(
__strnlen_user_asm
)
EXPORT_SYMBOL
(
__strnlen_user_nocheck_asm
)
#endif
__BUILD_STRNLEN_ASM
kernel
EXPORT_SYMBOL
(
__strnlen_kernel_asm
)
EXPORT_SYMBOL
(
__strnlen_kernel_nocheck_asm
)
#ifdef CONFIG_EVA
...
...
@@ -86,5 +81,4 @@ EXPORT_SYMBOL(__strnlen_kernel_nocheck_asm)
__BUILD_STRNLEN_ASM
user
.
set
pop
EXPORT_SYMBOL
(
__strnlen_user_asm
)
EXPORT_SYMBOL
(
__strnlen_user_nocheck_asm
)
#endif
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