I was required to modify NVIDIA GRAPHIC DRIVER source to be able to build it on mainline (Linux 6.14-rc2)
I had to remove:
/.date = “20160202”, // NBA comment .date removed from Linux 5.15/
from the last driver :
nvidia-550.144.03/nvidia-drm/nvidia-drm-drv.c
at line 1733
With this DEPRECATED instruction, DKMS refuse to build the nvidia kernel module on mainline kernel (it work on linux-stable 6.13.1 BUT refused to build since mainline 6.14-rc2)
Except of a mistake from me, it seems that the error ‘const struct drm_driver’ has no member named ‘date’ indicates that the .date field has been removed from the drm_driver structure in newer Linux kernel versions.
For me, this instruction had been removed since Linux 5.15 and the removal was part of an effort to clean up unnecessary fields from Linux kernel
So please update your driver code
Thanks
nbanba
PS: removing this instruction is enough to build the module and after it’s working fine
PS2: make.log report:
nvidia-drm/nvidia-drm-drv.c:1733:6: error: ‘struct drm_driver’ has no member named ‘date’
I was also require to remove this field (.date) from Aspeed ast-drm too while porting the last version (1.15.1) to mainline (my ast patch can be found here: Index of /ast-drm_nba_20250211)
Ok I will make a PR (sorry I didn’t know that nvidia drm drivers had a public repository - AspeedTech don’t have…)