Skip to content

Commit

Permalink
[PATCH] m32r: more __user annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 11, 2006
1 parent 12ea59e commit fd2c903
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/m32r/kernel/sys_m32r.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/*
* sys_tas() - test-and-set
*/
asmlinkage int sys_tas(int *addr)
asmlinkage int sys_tas(int __user *addr)
{
int oldval;

Expand Down Expand Up @@ -90,7 +90,7 @@ sys_pipe(unsigned long r0, unsigned long r1, unsigned long r2,

error = do_pipe(fd);
if (!error) {
if (copy_to_user((void *)r0, (void *)fd, 2*sizeof(int)))
if (copy_to_user((void __user *)r0, fd, 2*sizeof(int)))
error = -EFAULT;
}
return error;
Expand Down Expand Up @@ -201,7 +201,7 @@ asmlinkage int sys_ipc(uint call, int first, int second,
}
}

asmlinkage int sys_uname(struct old_utsname * name)
asmlinkage int sys_uname(struct old_utsname __user * name)
{
int err;
if (!name)
Expand Down

0 comments on commit fd2c903

Please sign in to comment.