From: Heiko Carstens Date: Tue, 11 Feb 2025 19:19:28 +0000 (+0100) Subject: s390/uaccess: Define INLINE_COPY_FROM_USER and INLINE_COPY_TO_USER X-Git-Tag: v6.15-rc1~113^2~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10a79b6fdd1a4ead85d270bfa3ae0b7bb83020cf;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/include/asm/uaccess.h b/arch/s390/include/asm/uaccess.h index 87833f50fa529..333a2afc0d6f1 100644 --- a/arch/s390/include/asm/uaccess.h +++ b/arch/s390/include/asm/uaccess.h @@ -28,6 +28,9 @@ void debug_user_asce(int exit); #define uaccess_kmsan_or_inline __always_inline #endif +#define INLINE_COPY_FROM_USER +#define INLINE_COPY_TO_USER + static uaccess_kmsan_or_inline __must_check unsigned long raw_copy_from_user(void *to, const void __user *from, unsigned long size) {