Skip to content

Commit 3778407

Browse files
author
Al Viro
committed
switch compat_sys_[gs]etitimer(2) to COMPAT_SYSCALL_DEFINE
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>
1 parent 3a142ed commit 3778407

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎kernel/compat.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ static inline long put_compat_itimerval(struct compat_itimerval __user *o,
290290
__put_user(i->it_value.tv_usec, &o->it_value.tv_usec)));
291291
}
292292

293-
asmlinkage long compat_sys_getitimer(int which,
294-
struct compat_itimerval __user *it)
293+
COMPAT_SYSCALL_DEFINE2(getitimer, int, which,
294+
struct compat_itimerval __user *, it)
295295
{
296296
struct itimerval kit;
297297
int error;
@@ -302,9 +302,9 @@ asmlinkage long compat_sys_getitimer(int which,
302302
return error;
303303
}
304304

305-
asmlinkage long compat_sys_setitimer(int which,
306-
struct compat_itimerval __user *in,
307-
struct compat_itimerval __user *out)
305+
COMPAT_SYSCALL_DEFINE3(setitimer, int, which,
306+
struct compat_itimerval __user *, in,
307+
struct compat_itimerval __user *, out)
308308
{
309309
struct itimerval kin, kout;
310310
int error;

0 commit comments

Comments
 (0)