Commit 56e9219a authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent a95aeb2f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -38,13 +38,13 @@
#define get_fs()        (current->thread.mm_segment)

#define set_fs(x)							\
({									\
{									\
	unsigned long __pto;						\
	current->thread.mm_segment = (x);				\
	__pto = current->thread.mm_segment.ar4 ?			\
		S390_lowcore.user_asce : S390_lowcore.kernel_asce;	\
	__ctl_load(__pto, 7, 7);					\
})
}

#define segment_eq(a,b) ((a).ar4 == (b).ar4)