I’m upgrading some old linux machines from 7.4 to 7.5 with legacy graphics card. 340.106 works fine under the 3.10.0-693.21.1 kernel , but when I upgrade to 3.10.0-862 (or 861) it fails to install. The error messages seem to be related to get_user_pages function. However that function prototype doesn’t seem to have changed between those two versions.
–D
In file included from /tmp/selfgz23204/NVIDIA-Linux-x86_64-340.106/kernel/nv.c:13:0:
/tmp/selfgz23204/NVIDIA-Linux-x86_64-340.106/kernel/nv-linux.h:2126:13: error: too few arguments to function ‘get_user_pages’
return get_user_pages(start, nr_pages, flags, pages, vmas);
^
In file included from /tmp/selfgz23204/NVIDIA-Linux-x86_64-340.106/kernel/nv-linux.h:68:0,
from /tmp/selfgz23204/NVIDIA-Linux-x86_64-340.106/kernel/nv.c:13:
/usr/src/kernels/3.10.0-861.el7.x86_64/include/linux/mm.h:1381:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
In file included from /tmp/selfgz23204/NVIDIA-Linux-x86_64-340.106/kernel/nv.c:13:0:
/tmp/selfgz23204/NVIDIA-Linux-x86_64-340.106/kernel/nv-linux.h:2153:45: error: too few arguments to function ‘get_user_pages_remote’
pages, vmas);
^
In file included from /tmp/selfgz23204/NVIDIA-Linux-x86_64-340.106/kernel/nv-linux.h:68:0,
from /tmp/selfgz23204/NVIDIA-Linux-x86_64-340.106/kernel/nv.c:13:
nvidia-compile.txt (16.2 KB)