android_kernel_motorola_sm6225/arch/s390/kvm
Rusty Russell 228b82211b s390: Replace weird use of PTR_RET.
Saves repeating "(void __force *)__uptr" but it's less clear.  Using
the output of PTR_RET() to determine the error rather than just
testing IS_ERR() is odd.

For example, I *assume* __gptr_to_uptr() never returns NULL?  Because
the __ret would be 0 for the old code.  The new version is clearer, IMHO:
it would try to get_user() on that address.

If you hate this variant, I can just s/PTR_RET/PTR_ERR_OR_ZERO/ instead.

Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2013-07-15 11:25:02 +09:30
..
diag.c KVM: s390: Check for PSTATE when handling DIAGNOSE 2013-06-20 23:31:59 +02:00
gaccess.h s390: Replace weird use of PTR_RET. 2013-07-15 11:25:02 +09:30
intercept.c KVM: s390: Reworked LCTL and LCTLG instructions 2013-06-20 23:32:39 +02:00
interrupt.c KVM: s390: Use common waitqueue 2013-06-17 17:09:17 +02:00
Kconfig KVM: s390: Wire up ioeventfd. 2013-03-05 19:12:17 -03:00
kvm-s390.c KVM: s390: Use common waitqueue 2013-06-17 17:09:17 +02:00
kvm-s390.h KVM: s390: Reworked LCTL and LCTLG instructions 2013-06-20 23:32:39 +02:00
Makefile KVM: get rid of $(addprefix ../../../virt/kvm/, ...) in Makefiles 2013-05-19 15:14:00 +03:00
priv.c KVM: s390: Fixed priority of execution in STSI 2013-06-20 23:33:01 +02:00
sigp.c KVM: s390: Renamed PGM_PRIVILEGED_OPERATION 2013-06-20 23:31:04 +02:00
trace-s390.h KVM: s390: Add support for channel I/O instructions. 2013-01-07 19:53:43 -02:00
trace.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-04-30 09:36:50 -07:00