From patchwork Mon Dec 28 12:46:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 352688 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9803591jai; Mon, 28 Dec 2020 06:53:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJykxthZDYOAv2qhuYBSBXcYeH0V/Ec1qzWw5/ZD+SJNIh/OSqtVlgN1EsbQI8bxOpy0uyPL X-Received: by 2002:a17:906:705:: with SMTP id y5mr40521089ejb.428.1609167196096; Mon, 28 Dec 2020 06:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167196; cv=none; d=google.com; s=arc-20160816; b=VSWX1k4cqDeMDix7bVknHRtPbHPTKQ6Ual1uCeI4VW9oLJb6JYE6rSnIBlDo36Sy5t TtLKO5+OlTL3qYnOxVsW+MutmUr6r/SUEDDA0qYSBDp1FfEzYSS/guHU7JDgfRJmijxj bidBL/+cGFgRYbf1vKaMp14XYuQfw7VfL3nDYCyU0lWrS5lIpopsT2J1DjJjqsCNVYP5 sGBWzTE+3gs4kVz4+Y7kzD7XoDJgJerDNS3zN2n39XvuWlF+XvwfUwcYGnYXUgH0q2jv KLIbhw9v6okfDcf0WU4l49wmftESOMFVTiuMezgJph5Qdza4NDthyX9fpEytjpVlqDNg B8Fw== 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=znny6XAoVr9sx6G1iQnxgYib8W8fO10ffycTuxdkXQ8fGmxu9ggdFIMie1WeoLiy0F FR3L/1yOyAoSZVqF/l+w3kgiG3O7E13J4D+F3hUk1AsuO4pmoclzGT5ewiHfMikhP7pb MANKh7Vw1aBPoXQN6hR0EsKg6XB3UgbvNOz2hGRaNqZJ0agIx57rxhGbUgjcyXih9U9Q +WAyW4ZX7TMSMEm5PJqbewzjPKLzGZMbN7nr+TaZ/XXTNgaflvpc6N1M7SmGFL4kOyTY 70WbhbBKe8yhbVRCJ7nI4CpwB31ZUQpFByCEy8w32TQY8Gph7+OVw6z4EH9J2DxNOe4h yz8A== 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 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 gj10si17827929ejb.578.2020.12.28.06.53.15; Mon, 28 Dec 2020 06:53:16 -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=SO1l2dkU; 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 S2502336AbgL1Ouo (ORCPT + 14 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 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 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"