From patchwork Mon Dec 28 12:48:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 352655 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9761096jai; Mon, 28 Dec 2020 05:52:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrwN3omifNPY1agfU72d5wssRj8q6TdcTo9qAQKBEwba4kBoObJLIv8g+LSXGegBciWKC5 X-Received: by 2002:a17:906:9345:: with SMTP id p5mr41006398ejw.40.1609163527008; Mon, 28 Dec 2020 05:52:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609163527; cv=none; d=google.com; s=arc-20160816; b=ZeSCz12FBeVh5TTWlgZ/7AwZF7wkFVWQSJuDGjO+7e0t75otCbrnoP1TXpwWMu0ikV LAVkHIckh9+H99dODjAbH9Wh1Q9jiO8/ZRAuDhPU7OXD6At2krkI6/g9pmAm3c4qVNei p1Y4/SQFMLTnMnVdw105MhtujWxljd7qVeDMGb7CqCG0oEub6tWI0krqG5yNivszgkKR jCdyClLc0zqKrmY1sAFoABA2z1s0I1vJz2FTEAQ3W8haM5HRYNx+2Ei0JhqkjpR4yG5o uOI3lEcH6b5TjSZEzGmp4bHQhpcf+m66aPsZoYprF5cbkzB60sr1YovRE60t5KUej8Zp IhIA== 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=JEEcOdyhfDeljDSKUYQS0Ey9CtMTDNcfJFTRVNHjNcc=; b=A1Wr7z7v4HdD6lHR91EDxRCzHPRnM4lOLukaL2gc06+NcsBqNOdcQqo/iE4hpw/66T Wcp0zLVzEfcGnh1SHSLq0vYcAEBfqYhYvswb008OTS8oVDtX8S+nslpn5twI3CDq5N9x IVL6Vd2HzarcP5aazcAPjs0yJw3MCfWwXgD4ZfgrsdkQAvyrWYWWj+77QBgsJYXQf5lN 06F3C7Ugbv4QuT8ceaDaezrRO/10AIqA82Cszs5TfiWCrHMjMstqvtn6dcWKnsTdRoRh X6u8OrPCHrcUm0GLwacDLceBPV9bdpuE2hPJQ1iRUGioRzICj1DONq4nsBAIQpbEoMY9 VWsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aS7FBtNj; 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 w3si8990760ejo.101.2020.12.28.05.52.06; Mon, 28 Dec 2020 05:52:07 -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=aS7FBtNj; 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 S2406822AbgL1NvT (ORCPT + 14 others); Mon, 28 Dec 2020 08:51:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:52086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406497AbgL1NvA (ORCPT ); Mon, 28 Dec 2020 08:51:00 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 952AA206D4; Mon, 28 Dec 2020 13:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609163445; bh=oVlP5CyOAGEWwhdM0Le/ucp8yLDKWgmdt2WsICQTp7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aS7FBtNjot7bbqii5kcd3eFYUx7G8MXcxMXqumqHg/7g3yfR4DCW94MMgy8hA3oJg guhX/bF2IWSmwkCO0DBXDVpAdEdauRzAqSGzPTaCLPdG7ugVNThZNBVJY2DN2tpSQv xz6IBcv5b78dxxBX2JrKMhP44ohGh7IiUjjy0Zto= 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.4 271/453] crypto: atmel-i2c - select CONFIG_BITREVERSE Date: Mon, 28 Dec 2020 13:48:27 +0100 Message-Id: <20201228124950.270839133@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124937.240114599@linuxfoundation.org> References: <20201228124937.240114599@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 d33a23b0532d5d1b5b700e8641661261e7dbef61 ] The bitreverse helper is almost always built into the kernel, but in a rare randconfig build it is possible to hit a case in which it is a loadable module while the atmel-i2c driver is built-in: arm-linux-gnueabi-ld: drivers/crypto/atmel-i2c.o: in function `atmel_i2c_checksum': atmel-i2c.c:(.text+0xa0): undefined reference to `byte_rev_table' Add one more 'select' statement to prevent this. Fixes: 11105693fa05 ("crypto: atmel-ecc - introduce Microchip / Atmel ECC driver") 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 0952f059d967c..1f6308cdf79a2 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -544,6 +544,7 @@ config CRYPTO_DEV_ATMEL_SHA config CRYPTO_DEV_ATMEL_I2C tristate + select BITREVERSE config CRYPTO_DEV_ATMEL_ECC tristate "Support for Microchip / Atmel ECC hw accelerator"