Enable compiling against Kernel 6.0
Hello,
as you may have noticed already, compiling the driver against kernel 6.0 fails:
/home/gerd/Downloads/nvidia-515xx/src/NVIDIA-Linux-x86_64-515.65.01-no-compat32/kernel/nvidia-drm/nvidia-drm-helper.c: In Funktion »__nv_drm_framebuffer_put«:
/home/gerd/Downloads/nvidia-515xx/src/NVIDIA-Linux-x86_64-515.65.01-no-compat32/kernel/nvidia-drm/nvidia-drm-helper.c:47:5: Fehler: Implizite Deklaration der Funktion »drm_framebuffer_put« [-Werror=implicit-function-declaration]
47 | drm_framebuffer_put(fb);
| ^~~~~~~~~~~~~~~~~~~
cc1: Einige Warnungen werden als Fehler behandelt
make[2]: *** [scripts/Makefile.build:249: /home/gerd/Downloads/nvidia-515xx/src/NVIDIA-Linux-x86_64-515.65.01-no-compat32/kernel/nvidia-drm/nvidia-drm-helper.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[1]: *** [Makefile:1853: /home/gerd/Downloads/nvidia-515xx/src/NVIDIA-Linux-x86_64-515.65.01-no-compat32/kernel] Fehler 2
make[1]: Verzeichnis „/usr/lib/modules/6.0.0-1-MANJARO/build“ wird verlassen
make: *** [Makefile:82: modules] Fehler 2
make: Verzeichnis „/home/gerd/Downloads/nvidia-515xx/src/NVIDIA-Linux-x86_64-515.65.01-no-compat32/kernel“ wird verlassen
==> FEHLER: Ein Fehler geschah in build().
Breche ab...
To fix, try the attached patch