nvidia-470xx-dkms doesn't compile
During the system update, recompilation of nvidia-470xx dkms module outputs this:
(1/1) Install DKMS modules
==> dkms install --no-depmod nvidia/470.182.03 -k 6.4.2-artix1-1
Error! Bad return status for module build on kernel: 6.4.2-artix1-1 (x86_64)
Consult /var/lib/dkms/nvidia/470.182.03/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/470.182.03 -k 6.4.2-artix1-1' exited 10
Looking at the mentioned log file, here is the error:
/var/lib/dkms/nvidia/470.182.03/build/nvidia-drm/nvidia-drm-drv.c: In function ‘nv_drm_update_drm_driver_features’:
/var/lib/dkms/nvidia/470.182.03/build/nvidia-drm/nvidia-drm-drv.c:876:18: error: ‘struct drm_driver’ has no member named ‘dumb_destroy’
876 | nv_drm_driver.dumb_destroy = nv_drm_dumb_destroy;
| ^
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/nvidia/470.182.03/build/nvidia-drm/nvidia-drm-drv.o] Error 1
Following patch might solve this, but I haven't tried it yet: https://gist.github.com/joanbm/77f0650d45747b9a4dc8e330ade2bf5c
Thanks.