Browse Source

s390/uaccess: make setfs macro return void

For an unknown (historic) reason the s390 specific implementation of
set_fs returns whatever the __ctl_load would return. The set_fs macro
however is supposed to return void.
Change the macro to do that.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Heiko Carstens 8 years ago
parent
commit
56e9219a82
1 changed files with 3 additions and 3 deletions
  1. 3 3
      arch/s390/include/asm/uaccess.h

+ 3 - 3
arch/s390/include/asm/uaccess.h

@@ -37,14 +37,14 @@
 #define get_ds()        (KERNEL_DS)
 #define get_ds()        (KERNEL_DS)
 #define get_fs()        (current->thread.mm_segment)
 #define get_fs()        (current->thread.mm_segment)
 
 
-#define set_fs(x) \
-({									\
+#define set_fs(x)							\
+{									\
 	unsigned long __pto;						\
 	unsigned long __pto;						\
 	current->thread.mm_segment = (x);				\
 	current->thread.mm_segment = (x);				\
 	__pto = current->thread.mm_segment.ar4 ?			\
 	__pto = current->thread.mm_segment.ar4 ?			\
 		S390_lowcore.user_asce : S390_lowcore.kernel_asce;	\
 		S390_lowcore.user_asce : S390_lowcore.kernel_asce;	\
 	__ctl_load(__pto, 7, 7);					\
 	__ctl_load(__pto, 7, 7);					\
-})
+}
 
 
 #define segment_eq(a,b) ((a).ar4 == (b).ar4)
 #define segment_eq(a,b) ((a).ar4 == (b).ar4)