diff -ruNb a/kernel/nvidia-drm/nvidia-drm-drv.c b/kernel/nvidia-drm/nvidia-drm-drv.c --- a/kernel/nvidia-drm/nvidia-drm-drv.c 2025-06-10 17:15:26.822551322 -0500 +++ b/kernel/nvidia-drm/nvidia-drm-drv.c 2025-10-03 20:44:32.934784551 -0500 @@ -139,6 +139,10 @@ static struct drm_framebuffer *nv_drm_framebuffer_create( struct drm_device *dev, struct drm_file *file, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0) + // Rel. commit. "drm: Pass the format info to .fb_create()" (Ville Syrjälä, 1 Jul 2025) + const struct drm_format_info *info, +#endif #if defined(NV_DRM_HELPER_MODE_FILL_FB_STRUCT_HAS_CONST_MODE_CMD_ARG) const struct drm_mode_fb_cmd2 *cmd #else @@ -154,6 +158,10 @@ fb = nv_drm_internal_framebuffer_create( dev, file, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0) + // Rel. commit. "drm: Allow the caller to pass in the format info to drm_helper_mode_fill_fb_struct()" (Ville Syrjälä, 1 Jul 2025) + info, +#endif &local_cmd); #if !defined(NV_DRM_HELPER_MODE_FILL_FB_STRUCT_HAS_CONST_MODE_CMD_ARG) diff -ruNb a/kernel/nvidia-drm/nvidia-drm-fb.c b/kernel/nvidia-drm/nvidia-drm-fb.c --- a/kernel/nvidia-drm/nvidia-drm-fb.c 2025-06-10 17:15:26.713509862 -0500 +++ b/kernel/nvidia-drm/nvidia-drm-fb.c 2025-10-03 20:48:25.750275438 -0500 @@ -32,6 +32,7 @@ #include "nvidia-drm-helper.h" #include +#include static void nv_drm_framebuffer_destroy(struct drm_framebuffer *fb) { @@ -157,6 +158,10 @@ struct drm_framebuffer *nv_drm_internal_framebuffer_create( struct drm_device *dev, struct drm_file *file, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0) + // Rel. commit. "drm: Allow the caller to pass in the format info to drm_helper_mode_fill_fb_struct()" (Ville Syrjälä, 1 Jul 2025) + const struct drm_format_info *info, +#endif struct drm_mode_fb_cmd2 *cmd) { struct nv_drm_framebuffer *nv_fb; @@ -183,6 +188,10 @@ dev, #endif &nv_fb->base, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0) + // Rel. commit. "drm: Allow the caller to pass in the format info to drm_helper_mode_fill_fb_struct()" (Ville Syrjälä, 1 Jul 2025) + info, +#endif cmd); /* diff -ruNb a/kernel/nvidia-drm/nvidia-drm-fb.h b/kernel/nvidia-drm/nvidia-drm-fb.h --- a/kernel/nvidia-drm/nvidia-drm-fb.h 2022-10-12 04:30:31.000000000 -0500 +++ b/kernel/nvidia-drm/nvidia-drm-fb.h 2025-10-03 20:50:00.360318861 -0500 @@ -35,6 +35,8 @@ #include #endif +#include + #include "nvidia-drm-gem-nvkms-memory.h" #include "nvkms-kapi.h" @@ -58,6 +60,10 @@ struct drm_framebuffer *nv_drm_internal_framebuffer_create( struct drm_device *dev, struct drm_file *file, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0) + // Rel. commit. "drm: Allow the caller to pass in the format info to drm_helper_mode_fill_fb_struct()" (Ville Syrjälä, 1 Jul 2025) + const struct drm_format_info *info, +#endif struct drm_mode_fb_cmd2 *cmd); #endif /* NV_DRM_ATOMIC_MODESET_AVAILABLE */