This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DS-5 Gator driver compiling for linux 4.10

I've been facing problems when trying to compiling gator drive using kernel 4.10.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
In file included from /gator/driver/gator_main.c:260:0:
/gator/driver/gator_hrtimer_gator.c: In function 'gator_hrtimer_online':
/gator/driver/gator_hrtimer_gator.c:33:62: error: request for member 'tv64' in something not a structure or union
if (per_cpu(hrtimer_is_active, cpu) || profiling_interval.tv64 == 0)
^
/gator/driver/gator_hrtimer_gator.c: In function 'gator_hrtimer_init':
/gator/driver/gator_hrtimer_gator.c:72:27: error: request for member 'tv64' in something not a structure or union
profiling_interval.tv64 = 0;
^
In file included from /gator/driver/gator_main.c:261:0:
/gator/driver/gator_cookies.c: In function 'translate_app_process':
/gator/driver/gator_cookies.c:257:57: warning: passing argument 6 of 'get_user_pages_remote' makes pointer from integer without a cast [-Wint-conversion]
if (get_user_pages_remote(task, mm, addr, 1, 0, 1, &page, &page_vma) <= 0)
^
In file included from ./include/linux/highmem.h:7:0,
from /gator/driver/gator_main.c:21:
./include/linux/mm.h:1267:6: note: expected 'struct page **' but argument is of type 'int'
long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^~~~~~~~~~~~~~~~~~~~~
In file included from /gator/driver/gator_main.c:261:0:
/gator/driver/gator_cookies.c:257:60: error: passing argument 7 of 'get_user_pages_remote' from incompatible pointer type [-Werror=incompatible-pointer-types]
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Googling a found that it may be due to kernel 4.10 as follow here and here.

I'd like to know if anybody else have been facing this problem and if there is any solution for it.

0