Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9109328pxu; Mon, 28 Dec 2020 06:53:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdX5kOb4qId47OfJDqjTXlNF3i+jJ8tqMDdpG2D14kwEsGwwPOOQTmu4T9eyWLsukSEO9f X-Received: by 2002:a17:907:20a4:: with SMTP id pw4mr41364554ejb.499.1609167195295; Mon, 28 Dec 2020 06:53:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167195; cv=none; d=google.com; s=arc-20160816; b=LO48aDcg5244XwYzjYggaG9IHCPuPevBrv923ODL5LkMIj3yVcTf/5smfnGQXrP/qb GKCsjeAaZGvVBuDQaixAk0+6O76ha9+Ir1sNDEOsYfHDhGFuI/diTnE0t62xUVDz2J6u O4oZMW4Z2kgMKsFJ++6FUTVPOOmguU5hpMqReqeM6SnFoW9Sm77IC4doEzo9cpqBqorj lN6QR0HhLCx17pdkoNgYXgo2Dl6NltOgLtNPk89AnS/jFFlOFas8NL4gJ/rGqpdszPxC 3/lZi90XRGE6LyCLp+GbZup9qluKHC78z+eGL/d0vwIODLgbfvxaFJsW6hvdlQjoE9o+ xWJQ== 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=+d+t1qAAgs6yrdP+So32m557JlXNMuZZBoJliNB19Ec=; b=yYxG9jiqEAHbpX8mIKyYyZuNjRl+uRyAFmEoTgcubiDOZ0/rxHpSJ7q04ZHvwDXJUI qM21UqSBZkrkeFtycjmTk85wssPX6MplTrBJi+WztiLWIvELBEZ85o+1L00E1NCBs0Sx KfLMLmeJp2i2Dj3pQjWVsNkU6+nZME7hkOnlaWHDhf1PJbCXl57OEnfDWWaF+eEtcXFd PmLON7IBBMO0V8ZtIxxDJwmIscs889O6nFLHrLxcm67Udv4+kooMZ1Q7a8HKswBFOpKP 9ZC/Us1uw+4BcrbaPrDuDs1HNHLTYdllDx95PdwuPmTbES6dpA81UHi9jKGeJMO7QX31 BcJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SO1l2dkU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 o20si6376599edi.262.2020.12.28.06.52.52; Mon, 28 Dec 2020 06:53:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=SO1l2dkU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S2504161AbgL1Ouo (ORCPT + 99 others); Mon, 28 Dec 2020 09:50:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:55236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436590AbgL1OUH (ORCPT ); Mon, 28 Dec 2020 09:20:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 707A4208B6; Mon, 28 Dec 2020 14:19:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165192; bh=eDtlkN/uQRrSLj+hooNLEcFWfstvoopKkKILnGJFquA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SO1l2dkUBwOcaNsguv7n/nt8C7QkJyu+RNLrBbV68AH3NdDmuUWTgEuQyHVisKv56 lQPpO/krnNvmXofOL+2EbS2JovyTOHRCy8Z/29eI78Y6r+QDLMzYl5F+Oo+r07hG+2 5ss0wSDagd17rZUaVFM4cgZVjV7LIkb86sL51pNY= 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 414/717] crypto: atmel-i2c - select CONFIG_BITREVERSE Date: Mon, 28 Dec 2020 13:46:52 +0100 Message-Id: <20201228125040.805651764@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 37da0c070a883..9d6645b1f0abe 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -548,6 +548,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" -- 2.27.0