s390/uaccess: Define INLINE_COPY_FROM_USER and INLINE_COPY_TO_USER
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 11 Feb 2025 19:19:28 +0000 (20:19 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:18:03 +0000 (17:18 +0100)
commit10a79b6fdd1a4ead85d270bfa3ae0b7bb83020cf
tree944f7b7153806f9c951f9102b427bb8e6351157f
parentbc6029239c11df78433c2085d8c9ee0e1109dfd2
s390/uaccess: Define INLINE_COPY_FROM_USER and INLINE_COPY_TO_USER

Inline copy_from_user() and copy_to_user(). With the shortened inline
assemblies of raw_copy_to_user() and raw_copy_from_user() the additional
kernel text size is acceptable, considering that this avoids function
calls on hot paths.

This increases the kernel text size by ~90kb (defconfig, gcc 14.2.0):

add/remove: 13/4 grow/shrink: 650/14 up/down: 93484/-3254 (90230)

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/uaccess.h