Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5302238ybp; Tue, 8 Oct 2019 00:15:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx58adHPz6vx9sU2DUV3X1JzJw/BS8Nhd7YDT25aoTeZ4DI5z3305SfiPQAw0GDoopDn/07 X-Received: by 2002:a50:f19c:: with SMTP id x28mr31852780edl.42.1570518958181; Tue, 08 Oct 2019 00:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570518958; cv=none; d=google.com; s=arc-20160816; b=TWSAPceC0sHfpB5gByLvP5pLvbCFs3ZCD+mTZ6j+n3TRfD11+AxpRQGbHOhvpOA9xj ml3uocziF0U5XjHQGroCxDiHkMZso2z+uAXQtU+IMfOZQnEkgkWIxyrzUaXv3+9E8Y07 6daRkOLHPNH0tOK0l1xBDw3sUDXRyNjwHUHiqqja+Gvz1DiRpOienUyXRitRTTyOL4VH 6hThhQjTGXcX+J0XRkRXIZmD1x90jvtibZHNtcut3qw4lZbMTmLxm21FZiPiQbjaTo0q ZhlQ2NbxEax/sgCgA6hcWCaxvgS3tgMJfsXhjGxo07+ipoFguKjR/zxwDBgF/BTYlHV5 W5Ow== 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=zUg1AlpuY1H/lO3zsZ/rDHC3PCxju2lNgX/sMaDA6DM=; b=kuBKDPRAx0y3lFICqo+SfTQzPATpu5AMwVn1o+qmpz7dJR3wZxIW31KwgC3R7AhVGY 2T8ftkjR9K9gvXceVLiZY8V/WnEharrWGU9C6+HqZbd31iAvJOcUK5lzUk4vxKtTqLVC AQvY6DEx+NXZLf+iQsASSae6MRErjkiqPsgIpjxHcN5NQlZenuH1Od7VjdyLUErVG7L3 usxV3RsnvdL/3i7xC6GBDFT+BPtp3sGwp2CfDIREqMKevTYyB2MF4l4N6UXfnN2W8mMV f2Cv3Sf2O+yC2hhGwQ5qaQQyymb5L5FbVHh6CUGXyq8d4U8NQeHpHmI9UbClkXBN1Ap6 CxyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 d17si8988702edv.76.2019.10.08.00.15.34; Tue, 08 Oct 2019 00:15:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730161AbfJHHPZ (ORCPT + 99 others); Tue, 8 Oct 2019 03:15:25 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:50308 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730057AbfJHHPZ (ORCPT ); Tue, 8 Oct 2019 03:15:25 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1B797DE032BBAA1EC3DC; Tue, 8 Oct 2019 15:15:22 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Tue, 8 Oct 2019 15:15:12 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] crypto: inside-secure - Fix randbuild error Date: Tue, 8 Oct 2019 15:15:03 +0800 Message-ID: <20191008071503.55772-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CRYPTO_DEV_SAFEXCEL is y but CRYPTO_SM3 is m, building fails: drivers/crypto/inside-secure/safexcel_hash.o: In function `safexcel_ahash_final': safexcel_hash.c:(.text+0xbc0): undefined reference to `sm3_zero_message_hash' Select CRYPTO_SM3 to fix this. Reported-by: Hulk Robot Fixes: 0f2bc13181ce ("crypto: inside-secure - Added support for basic SM3 ahash") Signed-off-by: YueHaibing --- drivers/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 3e51bae..5af17db 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -751,6 +751,7 @@ config CRYPTO_DEV_SAFEXCEL select CRYPTO_SHA512 select CRYPTO_CHACHA20POLY1305 select CRYPTO_SHA3 + select CRYPTO_SM3 help This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic engines designed by Inside Secure. It currently accelerates DES, 3DES and -- 2.7.4