Bug#1115203: nvidia-kernel-dkms: fail to build kernel module for the latest debian stable kernel 6.12.43

Vincas Dargis vindrg at gmail.com
Sun Nov 9 08:25:13 GMT 2025


On Thu, 18 Sep 2025 05:49:27 +0200 Andreas Beckmann <anbe at debian.org> wrote:
> What errors are you experiencing while building the module?
Fails on linux-image-6.17.7+deb14+1-amd64 (6.17.7-2) with three errors:

> nvidia-drm/nvidia-drm-drv.c:216: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]
>   216 |     .fb_create = nv_drm_framebuffer_create,
>       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~
> nvidia-drm/nvidia-drm-drv.c:216:18: note: (near initialization for ‘nv_mode_config_funcs.fb_create’)
> nvidia-drm/nvidia-drm-drv.c:188:32: note: ‘nv_drm_framebuffer_create’ declared here
>   188 | static struct drm_framebuffer *nv_drm_framebuffer_create(
>       |                                ^~~~~~~~~~~~~~~~~~~~~~~~~
> make[4]: *** [/usr/src/linux-headers-6.17.6+deb14-common/scripts/Makefile.build:292: nvidia-drm/nvidia-drm-drv.o] Error 1


> nvidia-drm/nvidia-drm-fb.c:262:9: error: passing argument 3 of ‘drm_helper_mode_fill_fb_struct’ from incompatible pointer type [-Wincompatible-pointer-types]
>   262 |         cmd);
>       |         ^~~
>       |         |
>       |         struct drm_mode_fb_cmd2 *
> In file included from /usr/src/linux-headers-6.17.6+deb14-common/include/drm/drm_atomic_helper.h:33,
>                  from nvidia-drm/nvidia-drm-helper.h:186,
>                  from nvidia-drm/nvidia-drm-fb.c:32:
> /usr/src/linux-headers-6.17.6+deb14-common/include/drm/drm_modeset_helper.h:37:67: note: expected ‘const struct drm_format_info *’ but argument is of type ‘struct drm_mode_fb_cmd2 *’
>    37 |                                     const struct drm_format_info *info,
>       |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

> nvidia-drm/nvidia-drm-fb.c:257:5: error: too few arguments to function ‘drm_helper_mode_fill_fb_struct’; expected 4, have 3
>   257 |     drm_helper_mode_fill_fb_struct(
>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/src/linux-headers-6.17.6+deb14-common/include/drm/drm_modeset_helper.h:35:6: note: declared here
>    35 | void drm_helper_mode_fill_fb_struct(struct drm_device *dev,
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Works find with older 6.16.12+deb14-amd64.

HW: 1:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)



More information about the pkg-nvidia-devel mailing list