一、背景
Android 12、13
kernel version: 5.1.0
二、编译报错及其处理
1、报错 1
如下:
fc900e/drivers/qcacld-new/CORE/VOSS/src/vos_utils.c:467:19: error: incompatible pointer types passing 'struct crypto_cipher *' to parameter of type 'struct crypto_cipher *' [-Werror,-Wincompatible-pointer-types]
cmac_calc_mic(tfm, input, nBytes, mic);
fc900e/drivers/qcacld-new/CORE/VOSS/src/vos_utils.c:488:8: error: implicit declaration of function 'crypto_free_cipher' [-Werror,-Wimplicit-function-declaration]
crypto_free_cipher(tfm);
fc900e/drivers/qcacld-new/CORE/VOSS/src/vos_utils.c:537:11: error: implicit declaration of function 'crypto_alloc_cipher' [-Werror,-Wimplicit-function-declaration]
tfm = crypto_alloc_cipher( "aes", 0, CRYPTO_ALG_ASYNC);
解决方法: