Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2460448ybb; Mon, 30 Mar 2020 06:37:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtWWWV6jPSVoJ3l3zzMmernn0ehSdud5u2pZEevTXVpVzgShehlAiFc9GW+yOMD9SkuW12S X-Received: by 2002:aca:646:: with SMTP id 67mr7250469oig.4.1585575476325; Mon, 30 Mar 2020 06:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585575476; cv=none; d=google.com; s=arc-20160816; b=BVdUIu8tnf1/i1A6VWfX0+Buvnp5a/MNR7qhcegOPircXxzw3TSgQoXKc3JvkRniV9 2HbIkZAzE6FD66WALddOAwvEinuaX3Yugqo22+6RQQvpfGQXhU6L7EevZtEiJC9n7uZd tCz5qDYv0ZvCyCpH9Qz0Aqql7gr40Zr3QzwIEEP/8dE4h2pgx11PtMgc16S+Zmp4V2+a hIhNzqKl+4CNhQ82HKhv1NWnwXCazvKOrhpMBByi9IALadqmpzWLJU8QHgMSRkhrUluG rm3p7wv8DoT8jM/uV1yoEjRMV26Vs0I1qnhKHfr6YHpai7lUpj8mhDPJzpAZ9X9/2bXa A6vw== 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=CIDJCCmFMKsQxdeA0ls7SYOWB1+44dQRl/foac3cKdI=; b=DosKYuQXAEpnh5/paQrLpCKtzxyAv8iRJK4P/aqABC+EYl2rw649LiAGNoBYGAvBZM gF6RyshYMGwSaeaWSPuYiynr9uyNLu+1sKFbPjEjUokUsA6mScoUN2JCnSg9GPIlAGar nwvlTPl7I+mWGhAi2DnUEnz+a9IA4mA9vWY+xUHwbfo/3umDnaP3DDPftgjDzfghfkv3 TMfBEekoWR4JkU6YFB/I0JvdFZC4Q/glQ5Fn5VNa9yw+rjpnhXelzTH53nON/MJbezwy 7F4Mqw3GoVQcHdRcD0JC6X0P9FG0kFgR/+hw8aRMVzIWxzYvxrMNp/g31HPqf4LiCM49 igCQ== 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 l185si5946387oif.274.2020.03.30.06.37.34; Mon, 30 Mar 2020 06:37:56 -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 S1727820AbgC3Ngg (ORCPT + 99 others); Mon, 30 Mar 2020 09:36:36 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52526 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726497AbgC3Ngg (ORCPT ); Mon, 30 Mar 2020 09:36:36 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4EA718E6AE31056C26F6; Mon, 30 Mar 2020 21:36:19 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Mar 2020 21:36:10 +0800 Subject: Re: [PATCH -next] crypto: hisilicon - Fix build error To: YueHaibing , , , , , , , , , References: <20200330083643.28824-1-yuehaibing@huawei.com> CC: , From: Zhou Wang Message-ID: <5E81F5CA.9040808@hisilicon.com> Date: Mon, 30 Mar 2020 21:36:10 +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: <20200330083643.28824-1-yuehaibing@huawei.com> 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/3/30 16:36, YueHaibing wrote: > 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: 47c16b449921 ("crypto: hisilicon - qm depends on UACCE") > Signed-off-by: YueHaibing Forgot to do the same thing like ZIP. Thanks for fixing this :) so Reviewed-by: Zhou Wang Best, Zhou > --- > drivers/crypto/hisilicon/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig > index 095850d01dcc..f09c6cf7823e 100644 > --- a/drivers/crypto/hisilicon/Kconfig > +++ b/drivers/crypto/hisilicon/Kconfig > @@ -27,6 +27,7 @@ config CRYPTO_DEV_HISI_SEC2 > select CRYPTO_SHA256 > select CRYPTO_SHA512 > depends on PCI && PCI_MSI > + depends on UACCE || UACCE=n > depends on ARM64 || (COMPILE_TEST && 64BIT) > help > Support for HiSilicon SEC Engine of version 2 in crypto subsystem. > @@ -58,6 +59,7 @@ config CRYPTO_DEV_HISI_ZIP > config CRYPTO_DEV_HISI_HPRE > tristate "Support for HISI HPRE accelerator" > depends on PCI && PCI_MSI > + depends on UACCE || UACCE=n > depends on ARM64 || (COMPILE_TEST && 64BIT) > select CRYPTO_DEV_HISI_QM > select CRYPTO_DH >