I can confirm the same DKMS build failure on Fedora 42 when updating to kernel 6.17.5-200.fc42.x86_64.
My setup:
Laptop: Dell (Intel + NVIDIA hybrid)
GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q (GA106M)
Current working kernel:6.16.12-200.fc42.x86_64
NVIDIA driver:575.64.05
Installation type: DKMS (not akmods)
The DKMS build fails with the following error in /var/lib/dkms/nvidia/575.64.05/build/make.log:
nvidia-drm/nvidia-drm-drv.c:240:18: error: initialization of ‘struct drm_framebuffer \* (\*)(struct drm_device \*, struct drm_file \*, const struct drm_format_info \*, const struct drm_mode_fb_cmd2 *)’ from incompatible pointer type ‘struct drm_framebuffer \* (*)(struct drm_device \*, struct drm_file \*, const struct drm_mode_fb_cmd2 \*)’ \[-Wincompatible-pointer-types\]
nvidia-drm/nvidia-drm-fb.c:308:5: error: too few arguments to function ‘drm_helper_mode_fill_fb_struct’; expected 4, have 3
This appears to be due to DRM API changes introduced in Linux 6.17, which the current NVIDIA 575.64.05 driver doesn’t yet support.
Fedora and NVIDIA are aware of this, and patches or an updated driver should land soon.
How to Set the Default Kernel (to stay on the working one):
#List all available kernels
sudo awk -F' ‘/menuentry / {print $2}’ /boot/grub2/grub.cfg
#Set 6.16.12 as the default
sudo grubby --set-default /boot/vmlinuz-6.16.12-200.fc42.x86_64
#Confirm
grubby --default-kernel
Your issue is different than the OP.
The OP was using drivers from rpmfusion with akmods.
You are apparently using the drivers from a different source with dkms.
In most cases, removing the drivers from another source then reinstalling from rpmfusion gets both the latest drivers and the automatic management with akmods.
I’m hitting this problem as well with 6.17.5. From the bug it looks like we need to wait until akmod-nvidia-470xx-470.256.02-13.fc42.x86_64 is pushed to stable, but I appear to have 256.02-10. Any idea when this might be pushed to stable? I know I could enable the testing repo, but I’d rather just wait.