From patchwork Thu Sep 1 13:25:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 75212 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp299209qga; Thu, 1 Sep 2016 06:27:20 -0700 (PDT) X-Received: by 10.98.16.75 with SMTP id y72mr26708237pfi.50.1472736439553; Thu, 01 Sep 2016 06:27:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si5762771pfa.54.2016.09.01.06.27.19; Thu, 01 Sep 2016 06:27:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754807AbcIAN1S (ORCPT + 1 other); Thu, 1 Sep 2016 09:27:18 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:37927 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754858AbcIAN1R (ORCPT ); Thu, 1 Sep 2016 09:27:17 -0400 Received: by mail-wm0-f48.google.com with SMTP id 1so94996362wmz.1 for ; Thu, 01 Sep 2016 06:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tcaJEKBqvoZVu9sOPYehokw6QzbzHVZC4byNyuXHVoU=; b=Ky+vU14GkOej9AkqQHiSnn4LDlUMP6dSaOXzWF3K3vkcMlW255UHMxPNr6L0j8vzuY JoVxiWVSGgsWkSF03SVhNP04/3V75fQFJhMsSjhscIrfA7hi9y9DKy+7xpsReTG49fbB FM79R4UdXyuImOHophR5C6T3o3Fwez9QV+Z1U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tcaJEKBqvoZVu9sOPYehokw6QzbzHVZC4byNyuXHVoU=; b=AkXy4otugCwnO0xk41ea+lNblhMkPXhYZI4QbKdCZCuAwvxeOgGWoCMkga60M8jWkA hNWSmeDsSqxO7iZDUpaI0QjmlWugxJqF+S7TWebqFXC2Bbpy9uIbnxLXUtKZfn21nSHQ dpw1hTyu/EEwKrGTfx88VUQszqk7uwoIjvxn60/kUYL8hYg9H7c1HCDPhYV+s7NJdr05 7Vw7LtJkK1YCyPmX/FvfLa6uuawhwXnRoy0UmrekVEiFtd4rPAhgJ8tIcHexh3npQF2x 9ZIB31PF+yJMj8jHfkeWWgEADPgUi8ugOqV9mU/xDC5tMo7s46nfyNIviaxA2hPFVXfk mlFw== X-Gm-Message-State: AE9vXwO0E0tmSNsjqQWoe17h1hNbAkkS9oGIKp6eg565QOjllnQ8D/U/pRVN8FnKEg0Qf4iv X-Received: by 10.28.142.2 with SMTP id q2mr14448047wmd.119.1472736436314; Thu, 01 Sep 2016 06:27:16 -0700 (PDT) Received: from localhost.localdomain ([105.147.72.48]) by smtp.gmail.com with ESMTPSA id e5sm29182678wma.13.2016.09.01.06.27.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Sep 2016 06:27:15 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au Cc: Ard Biesheuvel Subject: [PATCH v2 1/3] crypto: arm/sha1-neon - add support for building in Thumb2 mode Date: Thu, 1 Sep 2016 14:25:41 +0100 Message-Id: <1472736343-15305-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472736343-15305-1-git-send-email-ard.biesheuvel@linaro.org> References: <1472736343-15305-1-git-send-email-ard.biesheuvel@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The ARMv7 NEON module is explicitly built in ARM mode, which is not supported by the Thumb2 kernel. So remove the explicit override, and leave it up to the build environment to decide whether the core SHA1 routines are assembled as ARM or as Thumb2 code. Signed-off-by: Ard Biesheuvel --- arch/arm/crypto/sha1-armv7-neon.S | 1 - 1 file changed, 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/crypto/sha1-armv7-neon.S b/arch/arm/crypto/sha1-armv7-neon.S index dcd01f3f0bb0..2468fade49cf 100644 --- a/arch/arm/crypto/sha1-armv7-neon.S +++ b/arch/arm/crypto/sha1-armv7-neon.S @@ -12,7 +12,6 @@ #include .syntax unified -.code 32 .fpu neon .text