LinuxKPI: Remove vma argument from fault method of vm_operations_struct
It is removed from Linux since 4.11. In FreeBSD it results in several #ifdefs in drm-kmod. Reviewed by: emaste, hselasky, manu Differential revision: https://reviews.freebsd.org/D32169
This commit is contained in:
parent
5ca1f3f5e3
commit
062f15004f
@ -137,7 +137,7 @@ struct vm_fault {
|
||||
struct vm_operations_struct {
|
||||
void (*open) (struct vm_area_struct *);
|
||||
void (*close) (struct vm_area_struct *);
|
||||
int (*fault) (struct vm_area_struct *, struct vm_fault *);
|
||||
int (*fault) (struct vm_fault *);
|
||||
int (*access) (struct vm_area_struct *, unsigned long, void *, int, int);
|
||||
};
|
||||
|
||||
|
@ -560,11 +560,11 @@ linux_cdev_pager_populate(vm_object_t vm_obj, vm_pindex_t pidx, int fault_type,
|
||||
vmap->vm_pfn_pcount = &vmap->vm_pfn_count;
|
||||
vmap->vm_obj = vm_obj;
|
||||
|
||||
err = vmap->vm_ops->fault(vmap, &vmf);
|
||||
err = vmap->vm_ops->fault(&vmf);
|
||||
|
||||
while (vmap->vm_pfn_count == 0 && err == VM_FAULT_NOPAGE) {
|
||||
kern_yield(PRI_USER);
|
||||
err = vmap->vm_ops->fault(vmap, &vmf);
|
||||
err = vmap->vm_ops->fault(&vmf);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user