Hello,I have the same issue and it is the same root cause (no return value). My setup is:
Debian 13 (trixie), kernel 6.12.118+deb13-amd64 nvidia-kernel-dkms 550.163.01-2, GeForce GTX 1060 Kernel cmdline: nvidia-drm.modeset=1 nvidia-drm.fbdev=1 I fix it by adding a return 0 at the end of conftest_drm_connector_list().It seems enough to indicate the structure exists (compilation ok). No more warning in kernel log.

