Skip to content

Commit b5f1303

Browse files
YueHaibingherbertx
authored andcommitted
crypto: hisilicon - Fix build error
When UACCE is m, CRYPTO_DEV_HISI_QM cannot be built-in. But CRYPTO_DEV_HISI_QM is selected by CRYPTO_DEV_HISI_SEC2 and CRYPTO_DEV_HISI_HPRE unconditionally, which may leads this: drivers/crypto/hisilicon/qm.o: In function 'qm_alloc_uacce': drivers/crypto/hisilicon/qm.c:1579: undefined reference to 'uacce_alloc' Add Kconfig dependency to enforce usable configurations. Fixes: 47c16b4 ("crypto: hisilicon - qm depends on UACCE") Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent fcb90d5 commit b5f1303

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/crypto/hisilicon/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ config CRYPTO_DEV_HISI_SEC2
2727
select CRYPTO_SHA256
2828
select CRYPTO_SHA512
2929
depends on PCI && PCI_MSI
30+
depends on UACCE || UACCE=n
3031
depends on ARM64 || (COMPILE_TEST && 64BIT)
3132
help
3233
Support for HiSilicon SEC Engine of version 2 in crypto subsystem.
@@ -58,6 +59,7 @@ config CRYPTO_DEV_HISI_ZIP
5859
config CRYPTO_DEV_HISI_HPRE
5960
tristate "Support for HISI HPRE accelerator"
6061
depends on PCI && PCI_MSI
62+
depends on UACCE || UACCE=n
6163
depends on ARM64 || (COMPILE_TEST && 64BIT)
6264
select CRYPTO_DEV_HISI_QM
6365
select CRYPTO_DH

0 commit comments

Comments
 (0)