Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1180324ybb; Wed, 8 Apr 2020 18:47:29 -0700 (PDT) X-Google-Smtp-Source: APiQypKgkZMkU9jT47l4KCNehqPNgN4KxqljpSshbaNw1obj65CCn/oV93Rt119xe/s6GDd5dE+q X-Received: by 2002:aca:7517:: with SMTP id q23mr4719864oic.23.1586396848985; Wed, 08 Apr 2020 18:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586396848; cv=none; d=google.com; s=arc-20160816; b=B9VmVf7WYZZTBTfojoNg//8n9x0VSPsLniAEHYyzm8Zf1u8TjsRVtHYya7Ww99Mm7o lybVeIJLUnJU6P5mQshQs6apA3RJjzwPfnLd+tshTrv908MNwlp4v0heO0pWPDcHPkbT dgnJoCs3+My5hbr2FDqqvf8eXPKnVDvMJbTOnco2SyvfI+euI1c57N14ltykjYR+FHkj WWQft0QZP4Dix9DQh55DZaX7ZWHRFMxbXAXeMN7B35H7P71g3APTx+Re6dhpcc2q8v5O JUwYDD7KE/QnGVRQBxJ3pKWSPbSWgdQzaIoXxVIkXcTPRUO5wZ1WJv1JcekZL7VZlDls j2uA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=w8ON6hj9yyax20CNluhv53+qNtMnH0VcBEbUiV4UntU=; b=ArTsgUsNHS1Nk6eRCaGBMXVD/NzwvCzOhjwremIEOIL+r3PXNah3DTPNhq29S2HhTP u+INH7nXUfaVkcx9ZQe00QmF5dzuJxnlh/OS90BLE48wlZjc2gP4APq/sXyU9kelm1z2 6Hea2zkuRDenuvP0xtWpLqoOrw4AokdpZT8jQapIhO1HRyuTBpfOA7FdmenHocDxt42E a77DSNTn/TaFoTsLantvfpL3rmx0wG/XPpgqjYFPFA8GaAh8xMgHiqT4wojaDR+truGG GEV1BWaq7nGhupz9YBapC5bp2Dtj3Fw5g+JdQJlwYfdNeDNh0otIKe5+e4DNwVtj8oEN KcBw== 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 r15si378224oth.260.2020.04.08.18.47.04; Wed, 08 Apr 2020 18:47:28 -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 S1726589AbgDIBpT (ORCPT + 99 others); Wed, 8 Apr 2020 21:45:19 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37328 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726579AbgDIBpT (ORCPT ); Wed, 8 Apr 2020 21:45:19 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 9B416B59D0BA86C2FC1F; Thu, 9 Apr 2020 09:45:10 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 09:45:03 +0800 Subject: Re: [PATCH] crypto: hisilicon: add more dependencies To: Arnd Bergmann , Herbert Xu , "David S. Miller" , Hongbo Yao References: <20200408162718.4004527-1-arnd@arndb.de> CC: Jonathan Cameron , Zaibo Xu , Hao Fang , Eric Biggers , Mao Wenan , , From: Zhou Wang Message-ID: <5E8E7E0D.4090702@hisilicon.com> Date: Thu, 9 Apr 2020 09:44:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20200408162718.4004527-1-arnd@arndb.de> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/4/9 0:27, Arnd Bergmann wrote: > 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 > Hi Arnd, Seems we already have a fix: https://lkml.org/lkml/2020/3/30/173 with your reviewed-by :) Best, Zhou