From patchwork Mon Jan 21 17:02:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Sealey X-Patchwork-Id: 2012961 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 7E2893FD1A for ; Mon, 21 Jan 2013 17:05:44 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TxKm7-0008N4-SF; Mon, 21 Jan 2013 17:03:11 +0000 Received: from mail-oa0-f43.google.com ([209.85.219.43]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TxKm4-0008Lj-R9 for linux-arm-kernel@lists.infradead.org; Mon, 21 Jan 2013 17:03:09 +0000 Received: by mail-oa0-f43.google.com with SMTP id k1so6259885oag.16 for ; Mon, 21 Jan 2013 09:03:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=ZOzlKLlANRP0UZDVdDBl/DRTaXGPBjp15jCT3eoyWEk=; b=I64EsdYLxPZLRRDyD+wBqoWEpZLCJxc2r4HawFQkRo12Y8lYb1b+pgc35gKuukASG5 3WIxzt/cw8gqXAq4PK3pSxv9CKTnWs3jqikKsGi+axokjMOfgEBuAQLTEAHuVaXeV99N i9xAsZh1X4R6hHGzoRD8oy42AnWzeXDi+8Y6i5B01nl6PXwnwVOtZKA+i7QQeFD4ykbX Rw6CKBnZy/9MzjSCI481Poz6okZ5G0QRaFX6LxnNfXi52x06x6D0Tbp8zAUgpc3c1THz Uaw2XDJ0h2cDnekkt1G33Jcjp1bCW998K523Z+DUToU1W8ldv8sgXVtWb1Z0+7oUcVZG bQnw== X-Received: by 10.182.130.99 with SMTP id od3mr14250305obb.61.1358787784716; Mon, 21 Jan 2013 09:03:04 -0800 (PST) Received: from queequeg.genesi-usa.com ([199.193.222.22]) by mx.google.com with ESMTPS id ee14sm10941214obb.2.2013.01.21.09.03.03 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jan 2013 09:03:03 -0800 (PST) From: Matt Sealey To: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH] crypto: fix FTBFS with ARM SHA1-asm and THUMB2_KERNEL Date: Mon, 21 Jan 2013 11:02:43 -0600 Message-Id: <1358787763-1226-1-git-send-email-matt@genesi-usa.com> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQnriLTsxl3+73SRh3mi8u8DD1WIbGCN0emofypmNLeD9avkGrIsaH6nY9DdRZu6yXX33AUx X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130121_120308_919036_E266616E X-CRM114-Status: GOOD ( 12.75 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.219.43 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Matt Sealey , Russell King , "David S. Miller" , linux-arm-kernel@lists.infradead.org, Herbert Xu X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The optimized assembler SHA1 code for ARM does not conform to Thumb2 register usage requirements, so it cannot be built when the kernel is configured with THUMB2_KERNEL. Fix the FTBFS for now by preventing misconfigurations of the kernel. Signed-off-by: Matt Sealey --- crypto/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index 4641d95..304d60b 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -472,7 +472,7 @@ config CRYPTO_SHA1_SPARC64 config CRYPTO_SHA1_ARM tristate "SHA1 digest algorithm (ARM-asm)" - depends on ARM + depends on ARM && !THUMB2_KERNEL select CRYPTO_SHA1 select CRYPTO_HASH help