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

Vincent Cheng vcheng at debian.org
Sat Oct 18 05:51:04 UTC 2014


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).

Regards,
Vincent



More information about the pkg-nvidia-devel mailing list