Skip to content

Commit

Permalink
[PATCH] s390 misc __user annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Feb 8, 2006
1 parent 6b2b4e5 commit 793af24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/s390/kernel/sys_s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ asmlinkage long old_mmap(struct mmap_arg_struct __user *arg)
#ifndef CONFIG_64BIT
struct sel_arg_struct {
unsigned long n;
fd_set *inp, *outp, *exp;
struct timeval *tvp;
fd_set __user *inp, *outp, *exp;
struct timeval __user *tvp;
};

asmlinkage long old_select(struct sel_arg_struct __user *arg)
Expand Down
2 changes: 1 addition & 1 deletion arch/s390/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ asmlinkage void illegal_op(struct pt_regs * regs, long interruption_code)
info.si_signo = signal;
info.si_errno = 0;
info.si_code = ILL_ILLOPC;
info.si_addr = (void *) location;
info.si_addr = (void __user *) location;
do_trap(interruption_code, signal,
"illegal operation", regs, &info);
}
Expand Down
2 changes: 1 addition & 1 deletion include/asm-s390/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#define segment_eq(a,b) ((a).ar4 == (b).ar4)


static inline int __access_ok(const void *addr, unsigned long size)
static inline int __access_ok(const void __user *addr, unsigned long size)
{
return 1;
}
Expand Down

0 comments on commit 793af24

Please sign in to comment.