From: Heiko Carstens Date: Tue, 5 Mar 2013 12:14:44 +0000 (+0100) Subject: s390/kvm,gaccess: shorten put/get_guest code X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~32^2~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=396083a964aa4e86061d0e3449b1e0548a8197a9;p=pandora-kernel.git s390/kvm,gaccess: shorten put/get_guest code The put_guest_u*/get_guest_u* are nothing but wrappers for the regular put_user/get_user uaccess functions. The only difference is that before accessing user space the guest address must be translated to a user space address. Change the order of arguments for the guest access functions so they match their uaccess parts. Also remove the u* suffix, so we simply have put_guest/get_guest which will automatically use the right size dependent on pointer type of the destination/source that now must be correct. In result the same behaviour as put_user/get_user except that accesses must be aligned. Signed-off-by: Heiko Carstens Acked-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky Signed-off-by: Christian Borntraeger Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed