Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on kernel 5.3.18 #3

Open
Alex-rmx opened this issue Mar 22, 2022 · 1 comment
Open

Errors on kernel 5.3.18 #3

Alex-rmx opened this issue Mar 22, 2022 · 1 comment

Comments

@Alex-rmx
Copy link

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

@quantgeek
Copy link
Owner

I am so sorry for the late response. I, unfortunately, do not have my hardware with me at the moment to fix these issues. It will take several months before I can even get access to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants