#1135762 nvidia-legacy-390xx-kernel-dkms: dkms module does not build against kernel 7.0.3 (VMA_LOCK_OFFSET undeclared in nv-mmap.c) #1135762
- Package:
- nvidia-legacy-390xx-kernel-dkms
- Source:
- nvidia-legacy-390xx-kernel-dkms
- Submitter:
- Vincent Lefevre
- Date:
- 2026-07-10 19:41:01 UTC
- Severity:
- normal
- Tags:
dkms module does not build against kernel 7.0.3:
nvidia/nv-mmap.c: In function ‘nv_vma_enter_locked’:
nvidia/nv-mmap.c:587:24: error: ‘VMA_LOCK_OFFSET’ undeclared (first use in this function); did you mean ‘VGA_CRTC_OFFSET’?
587 | NvU32 tgt_refcnt = VMA_LOCK_OFFSET;
| ^~~~~~~~~~~~~~~
| VGA_CRTC_OFFSET
nvidia/nv-mmap.c:587:24: note: each undeclared identifier is reported only once for each function it appears in
nvidia/nv-mmap.c: In function ‘nv_vma_start_write’:
nvidia/nv-mmap.c:639:9: error: too many arguments to function ‘__is_vma_write_locked’; expected 1, have 2
639 | if (__is_vma_write_locked(vma, &mm_lock_seq))
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
In file included from /usr/src/linux-headers-7.0.3+deb14-common/include/linux/mm.h:18,
from ././common/inc/nv-pgprot.h:17,
from ././common/inc/nv-linux.h:20,
from nvidia/nv-mmap.c:15:
/usr/src/linux-headers-7.0.3+deb14-common/include/linux/mmap_lock.h:282:20: note: declared here
282 | static inline bool __is_vma_write_locked(struct vm_area_struct *vma)
| ^~~~~~~~~~~~~~~~~~~~~
See attached make.log file.
Hello, please find the patch attached. -------------------- Sincerely yours, *Damir Islamov* Rzhanov Institute of Semiconductor Physics SB RAS
Control: tags -1 patch Really tagged patch above. But I can't test the patch right now.
Hello, 0084 alone isn't enough — two more build errors remain afterwards (screen_info undeclared, dma_fence_signal return type). Attached patch fixes both, applied on top of 0084. Tested the driver on kernel 7.0.6-2-pve.
I applied patches 0084 and 0085 running kernel 7.0.13. nvidia-legacy-390xx-kernel-dkms compiled successfully. Running the driver on 7.0.13+deb14-amd64. Recommend updating the package.