@towo: Bei mir ist es nvidia(-current) [nicht "tesla"], aber ich vermute denselben Fehler.
Gerne liefere ich auch die gesamte make.log-Datei, aber sie ist 1.3MB groß und ich vermute folgendes reicht auch [es sind die einzigen Zeilen, die " error" enthalten]:
/var/lib/dkms/nvidia-current/535.161.08/build/nvidia-drm/nvidia-drm-gem.c:115:16: error: initialization of ‘int (*)(struct drm_gem_object *, struct iosys_map *)’ from incompatible pointer type ‘void * (*)(struct drm_gem_object *)’ [-Wincompatible-pointer-types]
115 | .vmap = nv_drm_gem_prime_vmap,
| ^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia-current/535.161.08/build/nvidia-drm/nvidia-drm-gem.c:115:16: note: (near initialization for ‘nv_drm_gem_funcs.vmap’)
/var/lib/dkms/nvidia-current/535.161.08/build/nvidia-drm/nvidia-drm-gem.c:116:16: error: initialization of ‘void (*)(struct drm_gem_object *, struct iosys_map *)’ from incompatible pointer type ‘void (*)(struct drm_gem_object *, void *)’ [-Wincompatible-pointer-types]
116 | .vunmap = nv_drm_gem_prime_vunmap,
| ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia-current/535.161.08/build/nvidia-drm/nvidia-drm-gem.c:116:16: note: (near initialization for ‘nv_drm_gem_funcs.vunmap’)
make[3]: *** [scripts/Makefile.build:248: /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-drm/nvidia-drm-gem.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[...]
make[2]: *** [/usr/src/linux-headers-6.8.2-1-siduction-amd64/Makefile:1946: /var/lib/dkms/nvidia-current/535.161.08/build] Error 2
make[1]: *** [Makefile:252: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.2-1-siduction-amd64'
make: *** [Makefile:82: modules] Error 2