From: Al Viro Date: Sat, 4 Feb 2006 01:11:52 +0000 (-0500) Subject: [PATCH] s390 __get_user() bogus warnings removal X-Git-Tag: v2.6.16-rc3~58^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=97fa5a664e69f2fcdd2120e7f4765f8c1df56282;p=~shefty%2Frdma-dev.git [PATCH] s390 __get_user() bogus warnings removal Signed-off-by: Al Viro --- diff --git a/include/asm-s390/uaccess.h b/include/asm-s390/uaccess.h index e2c73b45de4..0b7c0ca4c3d 100644 --- a/include/asm-s390/uaccess.h +++ b/include/asm-s390/uaccess.h @@ -208,25 +208,25 @@ extern int __put_user_bad(void) __attribute__((noreturn)); case 1: { \ unsigned char __x; \ __get_user_asm(__x, ptr, __gu_err); \ - (x) = *(__typeof__(*(ptr)) *) &__x; \ + (x) = *(__force __typeof__(*(ptr)) *) &__x; \ break; \ }; \ case 2: { \ unsigned short __x; \ __get_user_asm(__x, ptr, __gu_err); \ - (x) = *(__typeof__(*(ptr)) *) &__x; \ + (x) = *(__force __typeof__(*(ptr)) *) &__x; \ break; \ }; \ case 4: { \ unsigned int __x; \ __get_user_asm(__x, ptr, __gu_err); \ - (x) = *(__typeof__(*(ptr)) *) &__x; \ + (x) = *(__force __typeof__(*(ptr)) *) &__x; \ break; \ }; \ case 8: { \ unsigned long long __x; \ __get_user_asm(__x, ptr, __gu_err); \ - (x) = *(__typeof__(*(ptr)) *) &__x; \ + (x) = *(__force __typeof__(*(ptr)) *) &__x; \ break; \ }; \ default: \