diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-05-29 09:33:59 +0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-05-30 12:01:11 +0400 |
commit | 491af9903b858ee7c36735dc31708fe4074ce56f (patch) | |
tree | 3617b5b496f610bffe9142ba07f6395bfe513497 /drivers/s390/char | |
parent | 2e30db9522837e2a5d30ce1e66afb0a7ee0ff350 (diff) | |
download | linux-491af9903b858ee7c36735dc31708fe4074ce56f.tar.xz |
s390/uaccess: fix access_ok compile warnings
On s390 access_ok is a macro which discards all parameters and always
returns 1. This can result in compile warnings which warn about unused
variables like this:
fs/read_write.c: In function 'rw_copy_check_uvector':
fs/read_write.c:684:16: warning: unused variable 'buf' [-Wunused-variable]
Fix this by adding a __range_ok() function which consumes all parameters
but still always returns 1.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char')
0 files changed, 0 insertions, 0 deletions