diff --git a/binder/binder.c b/binder/binder.c index a9d04b2..d3829a0 100644 --- a/binder/binder.c +++ b/binder/binder.c @@ -3391,7 +3391,9 @@ static void binder_vma_close(struct vm_area_struct *vma) binder_defer_work(proc, BINDER_DEFERRED_PUT_FILES); } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) +static vm_fault_t binder_vm_fault(struct vm_fault *vmf) +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) static int binder_vm_fault(struct vm_fault *vmf) #else static int binder_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)