Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

android: binder: Change return type to vm_fault_t

Use new return type vm_fault_t for fault handler in
struct vm_operations_struct. For now, this is just
documenting that the function returns a VM_FAULT
value rather than an errno. Once all instances are
converted, vm_fault_t will become a distinct type.

Reference id -> 1c8f422059ae ("mm: change return type
to vm_fault_t")

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Souptick Joarder and committed by
Greg Kroah-Hartman
e19f70aa 720c2419

+1 -1
+1 -1
drivers/android/binder.c
··· 4693 4693 binder_defer_work(proc, BINDER_DEFERRED_PUT_FILES); 4694 4694 } 4695 4695 4696 - static int binder_vm_fault(struct vm_fault *vmf) 4696 + static vm_fault_t binder_vm_fault(struct vm_fault *vmf) 4697 4697 { 4698 4698 return VM_FAULT_SIGBUS; 4699 4699 }