NVIDIA显卡驱动NVIDIA-Linux-x86_64-545.29.02 安装错误分析之一
software/NVIDIA-Linux-x86_64-545.29.02/kernel-open/nvidia/libspdm_shash.c: 在函数‘lkca_hmac_duplicate’中:
/software/NVIDIA-Linux-x86_64-545.29.02/kernel-open/nvidia/libspdm_shash.c:90:26: 错误:implicit declaration of function ‘crypto_tfm_ctx_aligned’; did you mean ‘crypto_tfm_ctx_align’? [-Werror=implicit-function-declaration]
90 | char *src_ipad = crypto_tfm_ctx_aligned(&src_tfm->base);
| ^~~~~~~~~~~~~~~~~~~~~~
| crypto_tfm_ctx_align
/software/NVIDIA-Linux-x86_64-545.29.02/kernel-open/nvidia/libspdm_shash.c:90:26: 警告:initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/software/NVIDIA-Linux-x86_64-545.29.02/kernel-open/nvidia/libspdm_shash.c:91:26: 警告:initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
91 | char *dst_ipad = crypto_tfm_ctx_aligned(&dst_tfm->base);
在最新的Linux kernel内核6.x版本中, 安装Nvidia私有驱动过程中会出现错误;通过NVIDIA-Linux-x86_64-545.29.02.run安装时错误日志中,无法看到错误点; 只有在解压缩出来通过编译时才会发现错误,
crypto_tfm_ctx_aligned这个了函数已经放弃了,现在使用这个函数cryto_tfm_ctx_align()即可。