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
b8e8e1aa
Commit
b8e8e1aa
authored
Sep 03, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of {get,put}_compat_itimerspec()
no users left Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
fa2e62a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
include/linux/compat.h
include/linux/compat.h
+0
-5
kernel/compat.c
kernel/compat.c
+0
-18
No files found.
include/linux/compat.h
View file @
b8e8e1aa
...
...
@@ -443,11 +443,6 @@ static inline int compat_timespec_compare(struct compat_timespec *lhs,
return
lhs
->
tv_nsec
-
rhs
->
tv_nsec
;
}
extern
int
get_compat_itimerspec
(
struct
itimerspec
*
dst
,
const
struct
compat_itimerspec
__user
*
src
);
extern
int
put_compat_itimerspec
(
struct
compat_itimerspec
__user
*
dst
,
const
struct
itimerspec
*
src
);
asmlinkage
long
compat_sys_gettimeofday
(
struct
compat_timeval
__user
*
tv
,
struct
timezone
__user
*
tz
);
asmlinkage
long
compat_sys_settimeofday
(
struct
compat_timeval
__user
*
tv
,
...
...
kernel/compat.c
View file @
b8e8e1aa
...
...
@@ -367,24 +367,6 @@ COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len,
return
ret
;
}
int
get_compat_itimerspec
(
struct
itimerspec
*
dst
,
const
struct
compat_itimerspec
__user
*
src
)
{
if
(
__compat_get_timespec
(
&
dst
->
it_interval
,
&
src
->
it_interval
)
||
__compat_get_timespec
(
&
dst
->
it_value
,
&
src
->
it_value
))
return
-
EFAULT
;
return
0
;
}
int
put_compat_itimerspec
(
struct
compat_itimerspec
__user
*
dst
,
const
struct
itimerspec
*
src
)
{
if
(
__compat_put_timespec
(
&
src
->
it_interval
,
&
dst
->
it_interval
)
||
__compat_put_timespec
(
&
src
->
it_value
,
&
dst
->
it_value
))
return
-
EFAULT
;
return
0
;
}
int
get_compat_itimerspec64
(
struct
itimerspec64
*
its
,
const
struct
compat_itimerspec
__user
*
uits
)
{
...
...
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