Commit d144182e authored by Heiko Carstens's avatar Heiko Carstens

s390/uaccess: whitespace cleanup

Whitespace cleanup to get rid if some checkpatch findings, but mainly
to have consistent coding style within the header file again.
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent a0e3a44b
...@@ -198,14 +198,14 @@ static __always_inline int __get_user_fn(void *x, const void __user *ptr, unsign ...@@ -198,14 +198,14 @@ static __always_inline int __get_user_fn(void *x, const void __user *ptr, unsign
({ \ ({ \
__typeof__(*(ptr)) __x = (x); \ __typeof__(*(ptr)) __x = (x); \
int __pu_err = -EFAULT; \ int __pu_err = -EFAULT; \
\
__chk_user_ptr(ptr); \ __chk_user_ptr(ptr); \
switch (sizeof (*(ptr))) { \ switch (sizeof(*(ptr))) { \
case 1: \ case 1: \
case 2: \ case 2: \
case 4: \ case 4: \
case 8: \ case 8: \
__pu_err = __put_user_fn(&__x, ptr, \ __pu_err = __put_user_fn(&__x, ptr, sizeof(*(ptr))); \
sizeof(*(ptr))); \
break; \ break; \
default: \ default: \
__put_user_bad(); \ __put_user_bad(); \
...@@ -220,38 +220,38 @@ static __always_inline int __get_user_fn(void *x, const void __user *ptr, unsign ...@@ -220,38 +220,38 @@ static __always_inline int __get_user_fn(void *x, const void __user *ptr, unsign
__put_user(x, ptr); \ __put_user(x, ptr); \
}) })
#define __get_user(x, ptr) \ #define __get_user(x, ptr) \
({ \ ({ \
int __gu_err = -EFAULT; \ int __gu_err = -EFAULT; \
\
__chk_user_ptr(ptr); \ __chk_user_ptr(ptr); \
switch (sizeof(*(ptr))) { \ switch (sizeof(*(ptr))) { \
case 1: { \ case 1: { \
unsigned char __x; \ unsigned char __x; \
__gu_err = __get_user_fn(&__x, ptr, \ \
sizeof(*(ptr))); \ __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \
(x) = *(__force __typeof__(*(ptr)) *) &__x; \ (x) = *(__force __typeof__(*(ptr)) *)&__x; \
break; \ break; \
}; \ }; \
case 2: { \ case 2: { \
unsigned short __x; \ unsigned short __x; \
__gu_err = __get_user_fn(&__x, ptr, \ \
sizeof(*(ptr))); \ __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \
(x) = *(__force __typeof__(*(ptr)) *) &__x; \ (x) = *(__force __typeof__(*(ptr)) *)&__x; \
break; \ break; \
}; \ }; \
case 4: { \ case 4: { \
unsigned int __x; \ unsigned int __x; \
__gu_err = __get_user_fn(&__x, ptr, \ \
sizeof(*(ptr))); \ __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \
(x) = *(__force __typeof__(*(ptr)) *) &__x; \ (x) = *(__force __typeof__(*(ptr)) *)&__x; \
break; \ break; \
}; \ }; \
case 8: { \ case 8: { \
unsigned long __x; \ unsigned long __x; \
__gu_err = __get_user_fn(&__x, ptr, \ \
sizeof(*(ptr))); \ __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \
(x) = *(__force __typeof__(*(ptr)) *) &__x; \ (x) = *(__force __typeof__(*(ptr)) *)&__x; \
break; \ break; \
}; \ }; \
default: \ default: \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment