Skip to content

Commit

Permalink
switch compat_sys_[gs]etitimer(2) to COMPAT_SYSCALL_DEFINE
Browse files Browse the repository at this point in the history
again, strictly speaking we are in nasal daemon territory on ppc
and mips - we need to sign-extend int arguments.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Feb 3, 2013
1 parent 3a142ed commit 3778407
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kernel/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ static inline long put_compat_itimerval(struct compat_itimerval __user *o,
__put_user(i->it_value.tv_usec, &o->it_value.tv_usec)));
}

asmlinkage long compat_sys_getitimer(int which,
struct compat_itimerval __user *it)
COMPAT_SYSCALL_DEFINE2(getitimer, int, which,
struct compat_itimerval __user *, it)
{
struct itimerval kit;
int error;
Expand All @@ -302,9 +302,9 @@ asmlinkage long compat_sys_getitimer(int which,
return error;
}

asmlinkage long compat_sys_setitimer(int which,
struct compat_itimerval __user *in,
struct compat_itimerval __user *out)
COMPAT_SYSCALL_DEFINE3(setitimer, int, which,
struct compat_itimerval __user *, in,
struct compat_itimerval __user *, out)
{
struct itimerval kin, kout;
int error;
Expand Down

0 comments on commit 3778407

Please sign in to comment.