-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi,
I get two errors on kernel 5.3.18:
/home/student/bin/mpss-3.8.6/modules/host/tools_support.c:92:23: error: too many arguments to function ‘get_user_pages’
*nf_pages = (int32_t)get_user_pages(current, current->mm, (uint64_t)data,
^~~~~~~~~~~~~~
In file included from /usr/src/linux-5.3.18-150300.59.54/include/linux/scatterlist.h:8:0,
from /usr/src/linux-5.3.18-150300.59.54/include/linux/dmapool.h:14,
from /usr/src/linux-5.3.18-150300.59.54/include/linux/pci.h:1464,
from /home/student/bin/mpss-3.8.6/modules/include/mic_common.h:66,
from /home/student/bin/mpss-3.8.6/modules/host/tools_support.c:38:
/usr/src/linux-5.3.18-150300.59.54/include/linux/mm.h:1543:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/home/student/bin/mpss-3.8.6/modules/host/tools_support.c: In function ‘send_flash_cmd’:
/home/student/bin/mpss-3.8.6/modules/host/tools_support.c:312:3: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
do_gettimeofday(&t);
^~~~~~~~~~~~~~~
It seems that ‘do_gettimeofday’ is deprecated now. This error can be solved by additional function do_gettimeofday in the top of the file. Can you help me with the solution for the second problem I
Best regards, Alex