Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp868662ybb; Wed, 8 Apr 2020 11:27:40 -0700 (PDT) X-Google-Smtp-Source: APiQypLIj+dKEmxOFXHeReYkWjiCySSjmOr+daEyahpVlYhu2yVt+1COH0i8DuC5esm3W2YVxxAo X-Received: by 2002:a4a:558f:: with SMTP id e137mr3332256oob.89.1586370460747; Wed, 08 Apr 2020 11:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586370460; cv=none; d=google.com; s=arc-20160816; b=pYbLmgl3wctINjyT4vlZNn7a9uJc1Rx+UATQSl/ynnEVlhfKbeMVeefsVIBWlC+o5D /7ApXOEEzdJMH8VvvOL+GxGaLj+Nmw11qbIxWG6uZ3uAJzWL8ixgyRcniR5nk7U+Hh+W f7i1ZhhbZa3LKDtilD9fLjfgdPEXHAUh3bnVMQaoB01J9L6EZb0ivS/YUyT4ht5WRKNF qVlhdB6lEkdhGZxOjMxjhXHRNRhVdbW5IL0QKuj34JoItCC8D7bOkwAW/4zOePYN/9sP R+J5Jcr6y3pKe8TFjSJFXm8fjkBp79WQhhuV2GKVG3Ml63eT5rTWwJQ4dII7lrNRY4qG kB5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+G4F2zt3+tgm3XCU2HQOUZK5lT12dRmHqkBY7xgBxa8=; b=FnLpfAub/V3jXCwRY8eNhurvIeTnuuCa/AEyBBrMZJdVbSkebthMCuvbrZbeGwK/mj rIys8mt/h6qMvOa7VZejDg2GPEx3PeoH59I7n1MdHJY47vIOnQ0t+hyzt/9EuEmqrarI cO9ZqWDixc37HD+3WHGSWbcxB4pvIP45HcXTdFfuKIh0arDse1U4WJQakNP4/eUVnw/4 TdqKlOPMvPHomWlxM4pQoAT1kb1w6CgHAJwbLIf7sgDyyNVqg+vrZqYZcp3dAv5ZkRxM 992SW/vUhtlxGx0GGBaKaJhgoOebHiJi0dIQJ1zRwUCnXF98kAR6NOg6UGe9yP/W9Qiw wwwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h19si2795677otq.86.2020.04.08.11.27.17; Wed, 08 Apr 2020 11:27:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727941AbgDHQ2A (ORCPT + 99 others); Wed, 8 Apr 2020 12:28:00 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:57835 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbgDHQ2A (ORCPT ); Wed, 8 Apr 2020 12:28:00 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1Mlf8e-1iwCBb14J0-00ikQe; Wed, 08 Apr 2020 18:27:25 +0200 From: Arnd Bergmann To: Herbert Xu , "David S. Miller" , Hongbo Yao , Zhou Wang Cc: Arnd Bergmann , Jonathan Cameron , Zaibo Xu , Hao Fang , Eric Biggers , Mao Wenan , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: hisilicon: add more dependencies Date: Wed, 8 Apr 2020 18:27:12 +0200 Message-Id: <20200408162718.4004527-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8b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9IjB9F+wxsTDMjWBlZRntfLZaXJGLZYPoi lBOorTbNdjfPwWx5uxuBkjnp04D6FtTL6Qkki8GDBRwjeMveiw= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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' Fixes: 47c16b449921 ("crypto: hisilicon - qm depends on UACCE") Signed-off-by: Arnd Bergmann --- drivers/crypto/hisilicon/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig index 095850d01dcc..9c3004663fe8 100644 --- a/drivers/crypto/hisilicon/Kconfig +++ b/drivers/crypto/hisilicon/Kconfig @@ -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 -- 2.26.0