crypto: hisilicon/hpre: fix link error
Subsystems (2)
PATCH 1/1 crypto: hisilicon/hpre: fix link error
Fix the follow link error by select config CRYPTO_ECC and CRYPTO_ECDH.
ERROR: modpost: "ecc_get_curve25519" [drivers/crypto/hisilicon/hpre/hisi_hpre.ko] undefined!
ERROR: modpost: "ecc_get_curve" [drivers/crypto/hisilicon/hpre/hisi_hpre.ko] undefined!
ERROR: modpost: "crypto_ecdh_decode_key" [drivers/crypto/hisilicon/hpre/hisi_hpre.ko] undefined!
--- drivers/crypto/hisilicon/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
drivers/crypto/hisilicon/Kconfig +2 -0
@@ -69,6 +69,8 @@ config CRYPTO_DEV_HISI_HPRE select CRYPTO_DEV_HISI_QM select CRYPTO_DH select CRYPTO_RSA + select CRYPTO_ECC + select CRYPTO_ECDH help Support for HiSilicon HPRE(High Performance RSA Engine) accelerator, which can accelerate RSA and DH algorithms.
Signature · 1 line
2.25.1
There is a patch similar to yours that was send in advance, as follows:
https://www.spinics.net/lists/linux-crypto/msg54238.html
Quoted 27 lines · Yang Yingliang
Fix the follow link error by select config
CRYPTO_ECCandCRYPTO_ECDH.ERROR: modpost: "
ecc_get_curve25519" [drivers/crypto/hisilicon/hpre/hisi_hpre.ko] undefined!
ERROR: modpost: "ecc_get_curve" [drivers/crypto/hisilicon/hpre/hisi_hpre.ko] undefined!
ERROR: modpost: "crypto_ecdh_decode_key" [drivers/crypto/hisilicon/hpre/hisi_hpre.ko] undefined!Fixes 90274769cf79 ("crypto: hisilicon/hpre - add 'CURVE25519' algorithm")Fixes 05e7b906aa7c ("crypto: hisilicon/hpre - add 'ECDH' algorithm")Signed-off-by Yang Yingliang <[email protected]>--- drivers/crypto/hisilicon/Kconfig | 2 ++ 1 file changed, 2 insertions(+)drivers/crypto/hisilicon/Kconfig +2
-0@@ -69,6 +69,8 @@ config CRYPTO_DEV_HISI_HPRE select CRYPTO_DEV_HISI_QM select CRYPTO_DH select CRYPTO_RSA + select CRYPTO_ECC + select CRYPTO_ECDH help Support for HiSilicon HPRE(High Performance RSA Engine) accelerator, which can accelerate RSA and DH algorithms.