From patchwork Tue Oct 8 07:15:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 11178875 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DB9241747 for ; Tue, 8 Oct 2019 07:15:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC4B82173B for ; Tue, 8 Oct 2019 07:15:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730112AbfJHHPZ (ORCPT ); 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 X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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