From patchwork Thu Dec 3 23:20:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 336968 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp703602ilb; Thu, 3 Dec 2020 15:21:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLU+pLfhUcGJqODhFDUvGNo8n7gdbDbzQ9z8rm5sN6kL0ut0tBCTlNJkZS1B89Z+qTfVeP X-Received: by 2002:a17:906:8617:: with SMTP id o23mr4679855ejx.274.1607037709839; Thu, 03 Dec 2020 15:21:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607037709; cv=none; d=google.com; s=arc-20160816; b=z1fZLORrmhGmSRmLBIsLkgTmVHMqf9Ier6FOMHjboKK5xPLpK9b238bE7tBsgcH2zC GdDss6oEzIccvegakWlVXUTezCpz7lclGTrEa0C4Q/evgjHNibEChdFMChgCKZobEAl1 wXJBKj4FH/B8y7tzbzq1mbBaRMz4NAZnRNI6NX0ie6dKcc7iygy0aNDSpWxh0y23vj31 05c8mgOq3oEp7XBxDYDpWC5vr8Z5FJFzpMJ2YVDiRku9w1a+n0eARePRSgdEwPIr4J4Q J2qDfI9uixbnHRV5G1ulX0L9ycERrjthQHxNZ/ANqW9q0/uPH3I5i8aSihiu5mvdjryV 16Lg== 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 :message-id:date:subject:cc:to:from; bh=tDrm1OH4LNyIIfFUrsak5mfYZDuWp55KQ3y4H90Zc8A=; b=wymLxJCa6Qy6sKVPjJxfklGt/SzirGUybvJSFYQiV/HiZW8HCxWcmZNtzjv0YOCgpO TtpBnogj0/hFY6SmNXvLGda0R1ihULhXhBWQArfg0RCuG2Xnvq6jxkyoHOQkgatpqlUW DiMnSslQE4DyC/H/7VFxz0WHfocT/d8zC3ycHs5QSGZaaL73CfIzUpYNGfdLfSSF1q4V IVIHSC7+nHOMGc38ilx3K+Fw7MshJozPsGhTR+4uHQfL/SvqVSocmaPYsUIKi0qvxoHw rhAxKejb5Rb1velIVU8MeH2hzwK3PAmqvy7KY9fVBpux+FM1zweJ7WfV7IjWUS767qq5 nMpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu25si292955ejb.703.2020.12.03.15.21.49; Thu, 03 Dec 2020 15:21:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728965AbgLCXVH (ORCPT + 2 others); Thu, 3 Dec 2020 18:21:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:37304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727983AbgLCXVH (ORCPT ); Thu, 3 Dec 2020 18:21:07 -0500 From: Arnd Bergmann Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Herbert Xu , "David S. Miller" , Tudor-Dan Ambarus Cc: Arnd Bergmann , Keerthy , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: atmel-i2c - select CONFIG_BITREVERSE Date: Fri, 4 Dec 2020 00:20:04 +0100 Message-Id: <20201203232022.1485386-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Arnd Bergmann 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 --- drivers/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 6a02ab13835c..67a17644ce17 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -550,6 +550,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"