Fix compilation on kernels >= 5.1
This commit is contained in:
parent
27fd47e11e
commit
ae35b8da22
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue