parent
30f606be39
commit
61f72c675d
@ -1614,15 +1614,14 @@ static void fusd_client_mm_open(struct vm_area_struct *vma);
|
|||||||
|
|
||||||
static void fusd_client_mm_close(struct vm_area_struct *vma);
|
static void fusd_client_mm_close(struct vm_area_struct *vma);
|
||||||
|
|
||||||
/* int (*fault)(struct vm_area_struct *vma, struct vm_fault *vmf); */
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
static vm_fault_t fusd_client_fault (struct vm_fault *vmf);
|
||||||
|
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
||||||
static int fusd_client_fault (struct vm_fault *vmf);
|
static int fusd_client_fault (struct vm_fault *vmf);
|
||||||
#elif LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 30)
|
#elif LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 30)
|
||||||
static int fusd_client_fault (struct vm_area_struct *vma, struct vm_fault *vmf);
|
static int fusd_client_fault (struct vm_area_struct *vma, struct vm_fault *vmf);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static int fusd_client_fault(struct vm_area_struct *vma, struct vm_fault *vmf, int *type);
|
static int fusd_client_fault(struct vm_area_struct *vma, struct vm_fault *vmf, int *type);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct vm_operations_struct fusd_remap_vm_ops = {
|
static struct vm_operations_struct fusd_remap_vm_ops = {
|
||||||
@ -1736,7 +1735,9 @@ zombie_dev:
|
|||||||
return -EPIPE;
|
return -EPIPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
|
||||||
|
static vm_fault_t fusd_client_fault (struct vm_fault *vmf)
|
||||||
|
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
||||||
static int fusd_client_fault (struct vm_fault *vmf)
|
static int fusd_client_fault (struct vm_fault *vmf)
|
||||||
#elif LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 30)
|
#elif LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 30)
|
||||||
static int fusd_client_fault (struct vm_area_struct *vma, struct vm_fault *vmf)
|
static int fusd_client_fault (struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user