Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp784574ybf; Wed, 26 Feb 2020 23:17:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxEn9DSKTi88dUSq0rovOiP5F4ZUIset5Jj+nVYKqcZ4bX5JmpKi8xxxuXCRdFrcQem7Kbi X-Received: by 2002:a9d:5e8b:: with SMTP id f11mr2295756otl.110.1582787837171; Wed, 26 Feb 2020 23:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582787837; cv=none; d=google.com; s=arc-20160816; b=T5UXYWwbDZ0G9Cg7uR9rh9UjbP17vmRZxttEiPS0Q3N0MxfuL6ggyyYH3/DHGWc7Y4 gtjxVIbFK/DJ0XqXF/6LuyypRTwxvfXipqDeZiO/71UDYJrwGgBhKCM1nuIUWXA9huUn TjWZDyyYosx3QDOEsWd7UlkWdDWGREszf7dvbQtBDuHwaNyN3UAB2BiWuQQ6UeltuBYT GSzz2DoQiuGM45YkjTghx7GtgpRyue6P/8+edl2VUlMAqYAbsKHnbnwUX/jIev69R4Tc c5ucVo4yu07I9hpbEV4UtmYcKPjbdy06Ra/nbkPoBJ3oPpEFYWnbqQxKGJjDVs6updai XGhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ABea0u0eF1O2fQMdxcXWZdw/c8E1j7Z60d+l080EKWw=; b=cNoJAnDyyBIWGPLVI648nq7N9DzIrEG5/nDEyN3dFZcOnTD8D1jAMl72PpZ1mXOBNc AyXR9zSdxlHnuafaSNBWLq/ppxuIlKjy4aodOpT31afYANT1TNptNIlyFexWqGhsflGG 8Em1bptA3lTDRpEV/0nEHeQq+fVvzGgT3uHL4pE/2jWJtXeEtmWxpp1F340hosb1vSoM 20Tve0t6P8FP7iWU11aFazEmHmVRaJ4TrLcgBGA1thOMcQbe8ATwjjCyHwCnGPso5ZWV z12gv9tVBuJAMl8+v971roc0icz6NQSJ9mGd9lK1/UuZa4Ohpyk/Lk5JkacUMZuZiFP5 Dmdg== 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 w4si1084955otl.214.2020.02.26.23.16.53; Wed, 26 Feb 2020 23:17:17 -0800 (PST) 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 S1727340AbgB0HQs (ORCPT + 99 others); Thu, 27 Feb 2020 02:16:48 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:34912 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727336AbgB0HQs (ORCPT ); Thu, 27 Feb 2020 02:16:48 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8F06A889ABED8BB0365F; Thu, 27 Feb 2020 15:16:39 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Thu, 27 Feb 2020 15:16:29 +0800 From: Zhou Wang To: Herbert Xu , "David S. Miller" CC: , Hongbo Yao , "Zhou Wang" Subject: [PATCH v2] crypto: hisilicon - qm depends on UACCE Date: Thu, 27 Feb 2020 15:12:28 +0800 Message-ID: <1582787548-28201-1-git-send-email-wangzhou1@hisilicon.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Hongbo Yao If UACCE=m and CRYPTO_DEV_HISI_QM=y, the following error is seen while building qm.o: drivers/crypto/hisilicon/qm.o: In function `hisi_qm_init': (.text+0x23c6): undefined reference to `uacce_alloc' (.text+0x2474): undefined reference to `uacce_remove' (.text+0x286b): undefined reference to `uacce_remove' drivers/crypto/hisilicon/qm.o: In function `hisi_qm_uninit': (.text+0x2918): undefined reference to `uacce_remove' make[1]: *** [vmlinux] Error 1 make: *** [autoksyms_recursive] Error 2 This patch fixes the config dependency for QM and ZIP. reported-by: Hulk Robot Suggested-by: Herbert Xu Signed-off-by: Hongbo Yao Signed-off-by: Zhou Wang --- drivers/crypto/hisilicon/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig index 8851161..095850d 100644 --- a/drivers/crypto/hisilicon/Kconfig +++ b/drivers/crypto/hisilicon/Kconfig @@ -40,6 +40,7 @@ config CRYPTO_DEV_HISI_QM tristate depends on ARM64 || COMPILE_TEST depends on PCI && PCI_MSI + depends on UACCE || UACCE=n help HiSilicon accelerator engines use a common queue management interface. Specific engine driver may use this module. @@ -49,6 +50,7 @@ config CRYPTO_DEV_HISI_ZIP depends on PCI && PCI_MSI depends on ARM64 || (COMPILE_TEST && 64BIT) depends on !CPU_BIG_ENDIAN || COMPILE_TEST + depends on UACCE || UACCE=n select CRYPTO_DEV_HISI_QM help Support for HiSilicon ZIP Driver -- 2.8.1