Nvidia kernel module v. 515.48.07 not compiling against v6.0.x xanmod
Created by: melonlm
Building of 515.48.07 Nvidia driver fails with following error:
/root/nvidia-current-515.48.07/nvidia-uvm/uvm_policy.c: In function ‘uvm_is_valid_vma_range’: /root/nvidia-current-515.48.07/nvidia-uvm/uvm_policy.c:47:18: error: ‘struct vm_area_struct’ has no member named ‘vm_next’
I have tracked it down to 'include/linux/mm_types.h' being different to vanilla/Debian version. struct vm_area_struct in xanmod version does not implement the following list:
/* linked list of VM areas per task, sorted by address */
struct vm_area_struct *vm_next, *vm_prev;
present in vanilla and Debian kernel.