On 11/11/2023 14.51, Mike Mironov wrote:
Hello!
Problem solved. Error in conftest drm_device_has_pdev.
TL;DR; Just replace file in /usr/src/nvidia-legacy-340xx-340.108/patches
with included in this mail and rebuild module.
Orig conftest try include #include <drm/drm_device.h> instead of
#include <drm/drm_drv.h> and not include #include <stddef.h>
So drm_device_has_pdev conf test fail. Modified file included in this
mail. I hope maintainers release new version
Thanks for digging into this. The actual problem seems to be
NV_DRM_DRM_DEVICE_H_PRESENT not being defined despite of the header
actually existing ... I missed to backport the check for
drm/drm_device.h which was introduced much earlier than 470.63.01 (where
I took the drm_device_has_pdev patch from), could have been 390.138, but
that did not exist in the 340xx series, yet.
Andreas