]> git.baikalelectronics.ru Git - kernel.git/commit
s390/uaccess: consistent types
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 24 Jan 2014 11:51:27 +0000 (12:51 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 21 Feb 2014 07:50:15 +0000 (08:50 +0100)
commitb1a202f1c3566a508950f2d029d03b10dbae6b1c
treef7975539a30a9460ae32aca62e16b4951a2412b0
parent340033f1f8e7b8d56dd6b419a5b24c5023382b6e
s390/uaccess: consistent types

The types 'size_t' and 'unsigned long' have been used randomly for the
uaccess functions. This looks rather confusing.
So let's change all functions to use unsigned long instead and get rid
of size_t in order to have a consistent interface.

The only exception is strncpy_from_user() which uses 'long' since it
may return a signed value (-EFAULT).

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/uaccess.h
arch/s390/lib/uaccess.h
arch/s390/lib/uaccess_mvcos.c
arch/s390/lib/uaccess_pt.c
arch/s390/mm/maccess.c