crypto: hisilicon: add more dependencies
Subsystems (2)
PATCH 1/1 crypto: hisilicon: add more dependencies
The added dependencies must be applied recursively to other modules that select CRYPTO_DEV_HISI_QM, to avoid running into the same problem again:
WARNING: unmet direct dependencies detected for CRYPTO_DEV_HISI_QM
Depends on [m]: CRYPTO [=y] && CRYPTO_HW [=y] && (ARM64 [=y] || COMPILE_TEST [=y]) && PCI [=y] && PCI_MSI [=y] && (UACCE [=m] || UACCE [=m]=n) Selected by [y]:
- CRYPTO_DEV_HISI_SEC2 [=y] && CRYPTO [=y] && CRYPTO_HW [=y] && PCI [=y] && PCI_MSI [=y] && (ARM64 [=y] || COMPILE_TEST [=y] && 64BIT [=y]) - CRYPTO_DEV_HISI_HPRE [=y] && CRYPTO [=y] && CRYPTO_HW [=y] && PCI [=y] && PCI_MSI [=y] && (ARM64 [=y] || COMPILE_TEST [=y] && 64BIT [=y])
ld: drivers/crypto/hisilicon/qm.o: in function hisi_qm_uninit': qm.c:(.text+0x23b8): undefined reference to uacce_remove'
--- drivers/crypto/hisilicon/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
drivers/crypto/hisilicon/Kconfig +2 -0
@@ -28,6 +28,7 @@ config CRYPTO_DEV_HISI_SEC2 select CRYPTO_SHA512 depends on PCI && PCI_MSI depends on ARM64 || (COMPILE_TEST && 64BIT) + depends on UACCE || UACCE=n help Support for HiSilicon SEC Engine of version 2 in crypto subsystem. It provides AES, SM4, and 3DES algorithms with ECB
@@ -59,6 +60,7 @@ config CRYPTO_DEV_HISI_HPRE tristate "Support for HISI HPRE accelerator" depends on PCI && PCI_MSI depends on ARM64 || (COMPILE_TEST && 64BIT) + depends on UACCE || UACCE=n select CRYPTO_DEV_HISI_QM select CRYPTO_DH select CRYPTO_RSA
Signature · 1 line
2.26.0
Zhou Wang
maintainerQuoted 31 lines · Arnd Bergmann
The added dependencies must be applied recursively to other modules that select
CRYPTO_DEV_HISI_QM, to avoid running into the same problem again:WARNING: unmet direct dependencies detected for
CRYPTO_DEV_HISI_QM
Depends on [m]: CRYPTO [=y] &&CRYPTO_HW[=y] && (ARM64 [=y] ||COMPILE_TEST[=y]) && PCI [=y] &&PCI_MSI[=y] && (UACCE [=m] || UACCE [=m]=n) Selected by [y]:- CRYPTO_DEV_HISI_SEC2 [=y] && CRYPTO [=y] && CRYPTO_HW [=y] && PCI [=y] && PCI_MSI [=y] && (ARM64 [=y] || COMPILE_TEST [=y] && 64BIT [=y]) - CRYPTO_DEV_HISI_HPRE [=y] && CRYPTO [=y] && CRYPTO_HW [=y] && PCI [=y] && PCI_MSI [=y] && (ARM64 [=y] || COMPILE_TEST [=y] && 64BIT [=y])ld:
drivers/crypto/hisilicon/qm.o: in functionhisi_qm_uninit': qm.c:(.text+0x23b8): undefined reference touacce_remove'Fixes 47c16b449921 ("crypto: hisilicon - qm depends on UACCE")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/crypto/hisilicon/Kconfig | 2 ++ 1 file changed, 2 insertions(+)drivers/crypto/hisilicon/Kconfig +1
-0@@ -28,6 +28,7 @@ config CRYPTO_DEV_HISI_SEC2 select CRYPTO_SHA512 depends on PCI && PCI_MSI depends on ARM64 || (COMPILE_TEST && 64BIT) + depends on UACCE || UACCE=n help Support for HiSilicon SEC Engine of version 2 in crypto subsystem. It provides AES, SM4, and 3DES algorithms with ECB
drivers/crypto/hisilicon/Kconfig config CRYPTO_DEV_HISI_HPRE · line 66
Quoted 7 lines
drivers/crypto/hisilicon/Kconfig +1
-0@@ -59,6 +60,7 @@ config CRYPTO_DEV_HISI_HPRE tristate "Support for HISI HPRE accelerator" depends on PCI && PCI_MSI depends on ARM64 || (COMPILE_TEST && 64BIT) + depends on UACCE || UACCE=n select CRYPTO_DEV_HISI_QM select CRYPTO_DH select CRYPTO_RSA
Hi Arnd,
Seems we already have a fix: https://lkml.org/lkml/2020/3/30/173 with your reviewed-by :)
Best,
Zhou
Quoted 13 lines · Zhou Wang
Quoted 11 lines · Arnd Bergmann
The added dependencies must be applied recursively to other modules that select
CRYPTO_DEV_HISI_QM, to avoid running into the same problem again:WARNING: unmet direct dependencies detected for
CRYPTO_DEV_HISI_QM
Depends on [m]: CRYPTO [=y] &&CRYPTO_HW[=y] && (ARM64 [=y] ||COMPILE_TEST[=y]) && PCI [=y] &&PCI_MSI[=y] && (UACCE [=m] || UACCE [=m]=n) Selected by [y]:- CRYPTO_DEV_HISI_SEC2 [=y] && CRYPTO [=y] && CRYPTO_HW [=y] && PCI [=y] && PCI_MSI [=y] && (ARM64 [=y] || COMPILE_TEST [=y] && 64BIT [=y]) - CRYPTO_DEV_HISI_HPRE [=y] && CRYPTO [=y] && CRYPTO_HW [=y] && PCI [=y] && PCI_MSI [=y] && (ARM64 [=y] || COMPILE_TEST [=y] && 64BIT [=y])ld:
drivers/crypto/hisilicon/qm.o: in functionhisi_qm_uninit': qm.c:(.text+0x23b8): undefined reference touacce_remove'
Quoted 5 lines
Quoted 3 lines
Fixes 47c16b449921 ("crypto: hisilicon - qm depends on UACCE")Signed-off-by Arnd Bergmann <[email protected]>---
Seems we already have a fix: https://lkml.org/lkml/2020/3/30/173 with your reviewed-by :)
Ah, of course. I even remembered that patch when I saw the problem in mainline, but for some reason assumed it was yet another instance of the same bug, rather than a patch that had I was just missing in my tree.
Arnd