Forked from: https://aur.archlinux.org/packages/nvidia-550xx-dkms
This fork includes 0005-kernel-nvidia-Fulfill-6.17-fb_create-contract.patch to fix compilation on Linux kernel 6.17 and later (including 6.18).
Linux kernel 6.17 changed the signature of drm_helper_mode_fill_fb_struct() to include a new const struct drm_format_info * parameter (kernel commit a34cc7bf1034). This breaks NVIDIA 550.xx driver compilation with errors like:
error: incompatible function pointer types
error: too few arguments to function call, expected 4, have 3
The patch adds conditional compilation using LINUX_VERSION_CODE to support the new API while remaining backwards compatible with older kernels.
- Original patch by: Joan Bruguera Mico (nvidia-470xx-linux-mainline)
- Adapted for nvidia-550xx-dkms with assistance from Claude (Anthropic AI)