blob: 56c08d53723d059b309e2d4d6fb2a6b80f7ec923 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- driver/adv_mmap.c.orig 2019-05-27 15:37:05.655080151 -0400
+++ driver/adv_mmap.c 2019-05-27 15:37:14.062322054 -0400
@@ -33,11 +33,16 @@ void adv_vma_close(struct vm_area_struct
{
// printk("%s(%d)\n", __func__, __LINE__);
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
-int adv_vma_nopage(struct vm_fault *vmf)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0)
+vm_fault_t
+#else
+int
+#endif
+adv_vma_nopage(struct vm_fault *vmf)
{
unsigned long offset;
struct adv_vcom * data;
struct vm_area_struct *vma = vmf->vma;
struct page *page = NULL;
|