Bugzilla – Bug 1219117
nvidia-open-driver-G06-signed fails to build against kernel 6.7
Last modified: 2024-02-24 15:20:03 UTC
Kernel 6.7 has entered Factory - which results in the build fail of the nvidia open driver https://build.opensuse.org/package/live_build_log/openSUSE:Factory/nvidia-open-driver-G06-signed/standard/x86_64 [ 145s] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.c: In function 'lkca_hmac_duplicate': [ 145s] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.c:90:26: error: implicit declaration of function 'crypto_tfm_ctx_aligned'; did you mean 'crypto_tfm_ctx_align'? [-Werror=implicit-function-declaration] [ 145s] 90 | char *src_ipad = crypto_tfm_ctx_aligned(&src_tfm->base); [ 145s] | ^~~~~~~~~~~~~~~~~~~~~~ [ 145s] | crypto_tfm_ctx_align [ 145s] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.c:90:26: warning: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] [ 145s] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.c:91:26: warning: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] [ 145s] 91 | char *dst_ipad = crypto_tfm_ctx_aligned(&dst_tfm->base); [ 145s] | ^~~~~~~~~~~~~~~~~~~~~~ [ 145s] CC [M] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_hkdf_sha.o [ 145s] cc1: some warnings being treated as errors [ 145s] make[5]: *** [/usr/src/linux-6.7.1-1/scripts/Makefile.build:244: /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.o] Error 1
Google showed me https://mirrors.dotsrc.org/gentoo-portage/x11-drivers/nvidia-drivers/files/nvidia-drivers-535.43.22-kernel-6.7.patch Haven't verified if this makes sense yet ...
More information here: https://github.com/NVIDIA/open-gpu-kernel-modules/issues/574
Yes, it's simple expansion of the dropped inline function from the upstream. I guess, though, it would work simply by replacing crypto_tfm_ctx_aligned() call s with crypto_tfm_ctx() for 6.7 and later.
fixed and submitted.
This is an autogenerated message for OBS integration: This bug (1219117) was mentioned in https://build.opensuse.org/request/show/1141256 Factory / nvidia-open-driver-G06-signed