From patchwork Mon Jan 25 18:38:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 370648 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp5324897jam; Tue, 26 Jan 2021 12:52:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyM2kxdtXJrNxI5HLGImiNBhlDysBv9X0J/SnOAuIdG4mIPa7qdWB8AlWrkcrV61dyw/pda X-Received: by 2002:a17:906:b055:: with SMTP id bj21mr4699964ejb.355.1611694351511; Tue, 26 Jan 2021 12:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611694351; cv=none; d=google.com; s=arc-20160816; b=In5TwLY8+IUijbxZBm5p2r6AhQOSfOopwImQa9WeEJJFRn9Ue+N08tGAHIcnGMjk4J es/obRexQlsmuUkVK5PSedp67GVToC4O8ewTn2Z8c7szSAHHz0zQQpYipNfRHqOw8DLN MWLyWhkR27HFvfNSG1WeRofY41olQ9NI8RrHPiU/T1viXTCXHYPxTzvUiMi5l+Cbrhqf CYci/Vl2CqBUjM0FM7jaCe9bCMYbcDNkiSD+XARK9nbWgnlBWArEJngCcKTYu68K6h6E e56CGeYUHcZri9R+Eh3b7Uy6I6SyEazaTBo+p6n5fFUo+94S0Ae0MZhY1mJkKZCtoIwh aFtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=55Arp1v4M8XQ2sKffoEAiQeez55vya0pu4FMmirrdKk=; b=hpG6uTGDl6dwNrcJKC9YuaCN6OAFJhBY/ErPPvgXSKDN1DFyf1I++0oFk8qJvh0Zhr H2j6GbSAfIKhh2kon3pNIm7vhAsF1i2UK7c5QaK/2R90KTWXmM1H6ph5qA2kgz6CS7FY XSPQt+g8bRVyTycHBAnuSupcih9kL4fAlbLb5jUONcD+bcyRKskAz7PIHXKi6x4vVdii Z/FzNJvhIS4QkkVCD5BMsnQ3mHArdYE/QmgkPOMa7zeGn8HXbixuo6FIjctOBQTKOwDP pGkmm1rspgSR1h89nwoyNaICGtSBwOcbDrNsocfMs+aeh8EwpNuWb2+WCxspLxGusSgC wZww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MU6Gf+u2; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si7226800edu.101.2021.01.26.12.52.31; Tue, 26 Jan 2021 12:52:31 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MU6Gf+u2; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725828AbhAZFAl (ORCPT + 13 others); Tue, 26 Jan 2021 00:00:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:38344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbhAYSvF (ORCPT ); Mon, 25 Jan 2021 13:51:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3AA3820679; Mon, 25 Jan 2021 18:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611600624; bh=fuZVrm3xwsK1zeULItyFEkIFrNYiS8oJi4OUrjGLd/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MU6Gf+u2dMdmMerVCzcDJO2vf4n2x6O1ui8DD7WUAcyHd5Iuh/S9MN2biWWRDjKRl symrXxxRQOhYfkoUJfL/JNLK+bvWafF9Qcjb8rvE7j+QHg+qyOXXoiwaJ4HIhgWugW dDQF3U6QO/Jm9Kw1aa/zNKTjZOYOxuGiLHvJlF4M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Herbert Xu , Sasha Levin Subject: [PATCH 5.10 086/199] crypto: omap-sham - Fix link error without crypto-engine Date: Mon, 25 Jan 2021 19:38:28 +0100 Message-Id: <20210125183219.900263500@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210125183216.245315437@linuxfoundation.org> References: <20210125183216.245315437@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit 382811940303f7cd01d0f3dcdf432dfd89c5a98e ] The driver was converted to use the crypto engine helper but is missing the corresponding Kconfig statement to ensure it is available: arm-linux-gnueabi-ld: drivers/crypto/omap-sham.o: in function `omap_sham_probe': omap-sham.c:(.text+0x374): undefined reference to `crypto_engine_alloc_init' arm-linux-gnueabi-ld: omap-sham.c:(.text+0x384): undefined reference to `crypto_engine_start' arm-linux-gnueabi-ld: omap-sham.c:(.text+0x510): undefined reference to `crypto_engine_exit' arm-linux-gnueabi-ld: drivers/crypto/omap-sham.o: in function `omap_sham_finish_req': omap-sham.c:(.text+0x98c): undefined reference to `crypto_finalize_hash_request' arm-linux-gnueabi-ld: omap-sham.c:(.text+0x9a0): undefined reference to `crypto_transfer_hash_request_to_engine' arm-linux-gnueabi-ld: drivers/crypto/omap-sham.o: in function `omap_sham_update': omap-sham.c:(.text+0xf24): undefined reference to `crypto_transfer_hash_request_to_engine' arm-linux-gnueabi-ld: drivers/crypto/omap-sham.o: in function `omap_sham_final': omap-sham.c:(.text+0x1020): undefined reference to `crypto_transfer_hash_request_to_engine' Fixes: 133c3d434d91 ("crypto: omap-sham - convert to use crypto engine") Signed-off-by: Arnd Bergmann Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 9d6645b1f0abe..ff5e85eefbf69 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -366,6 +366,7 @@ if CRYPTO_DEV_OMAP config CRYPTO_DEV_OMAP_SHAM tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator" depends on ARCH_OMAP2PLUS + select CRYPTO_ENGINE select CRYPTO_SHA1 select CRYPTO_MD5 select CRYPTO_SHA256