340.46 module build fails for linux 3.2.0 in nv-drm.c

Andreas Beckmann anbe at debian.org
Sat Oct 18 14:21:04 UTC 2014


On 2014-10-18 07:51, Vincent Cheng wrote:
> On Fri, Oct 17, 2014 at 3:24 AM, Andreas Beckmann <anbe at debian.org> wrote:
>> Looks like the recent drm changes broke something ...
>>
>> /usr/src/modules/nvidia-kernel/nv-drm.c: In function 'nv_gem_prime_get_sg_table':
>> /usr/src/modules/nvidia-kernel/nv-drm.c:81:5: error: implicit declaration of function 'drm_prime_pages_to_sg' [-Werror=implicit-function-declaration]
>> /usr/src/modules/nvidia-kernel/nv-drm.c:81:5: warning: return makes pointer from integer without a cast [enabled by default]
>> /usr/src/modules/nvidia-kernel/nv-drm.c: At top level:
>> /usr/src/modules/nvidia-kernel/nv-drm.c:114:37: error: 'DRIVER_PRIME' undeclared here (not in a function)
>> /usr/src/modules/nvidia-kernel/nv-drm.c:121:5: error: unknown field 'prime_handle_to_fd' specified in initializer
>> /usr/src/modules/nvidia-kernel/nv-drm.c:121:27: error: 'drm_gem_prime_handle_to_fd' undeclared here (not in a function)
>> /usr/src/modules/nvidia-kernel/nv-drm.c:122:5: error: unknown field 'gem_prime_export' specified in initializer
>> /usr/src/modules/nvidia-kernel/nv-drm.c:122:25: error: 'drm_gem_prime_export' undeclared here (not in a function)
>> /usr/src/modules/nvidia-kernel/nv-drm.c:123:5: error: unknown field 'gem_prime_get_sg_table' specified in initializer
> 
> Ack, I'm aware of #765679, but I admit I've no idea exactly what's
> causing this. It's not reproducible with a 3.16 kernel, at least (I
> don't see any of the above errors in my dkms build log for 340.46 + a
> 3.16 kernel).

no it only appears in 3.2.0 and 2.6 kernels - and seems to be related to
the recent drm changes in conftest.h
this is a regression from previous releases that were compatible to all
ancient kernels

the nvidia-kernel-source package is more suited for bulk compile tests -
throw it into a chroot with any nuber of kernel headers and run
/usr/share/doc/nvidia-kernel-source/build-module-packages.sh

can you take a look at this, I'm busy with nvidia-alternatives and
glx-diversions and friends ...


Andreas




More information about the pkg-nvidia-devel mailing list