From patchwork Mon Aug 29 11:19:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 74895 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1577826qga; Mon, 29 Aug 2016 04:20:25 -0700 (PDT) X-Received: by 10.98.34.151 with SMTP id p23mr31802615pfj.102.1472469622392; Mon, 29 Aug 2016 04:20:22 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si38779458pfb.98.2016.08.29.04.20.22; Mon, 29 Aug 2016 04:20:22 -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 S932617AbcH2LUV (ORCPT + 1 other); Mon, 29 Aug 2016 07:20:21 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:35420 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932346AbcH2LUT (ORCPT ); Mon, 29 Aug 2016 07:20:19 -0400 Received: by mail-wm0-f42.google.com with SMTP id f65so73933302wmi.0 for ; Mon, 29 Aug 2016 04:20:19 -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=N8eNgTxMR2DgCK7d2DWX0mZQIrWnzhw5keLe6RG1mzCfy5UU+a9Wq8z8mvYVwQ5EGx 6fYRx+q8vXfbMFeXb/NuqHA6qT8Q8IETCqONsZ2ykNTQI+gwaQJivTWlYU/FfBgD+PFS bNbiwfaiE6Mw4Bkaw8Dn6Ba5zl2sfSiUSntDk= 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=MuYqk7jm9aZFID98wBbNtcHvbnlxioiA/2JhDPJrkYIK10Ha6K8udeWhJjArR6Q+vN hWMIoPyYSL7lqhOBNwTFJDLuGKLuFAUw8hHDQ6e49ZAUZ7oUfuZmgitmdEYs06x7uWwI DfhA+sJWLc5ds3KA8tQP/dDdjrSqYHAMlnkO3X+tI4hhBmOGIBx2K49S/6N+Q1hciHAF 9VbiifO2UYhxU9jTQFFuw8HGwO4PQSUuyeKeIpUTgHAUttdvRLm15B79HcZdFamTfJIB xQkiFIll7a5dPH+mcvnZZv1AMmWu5Ol6PcLHI9IK0FSIvbpj83ZIWKdfGckIGGgcJ6oB YSWg== X-Gm-Message-State: AE9vXwOnDmRy1+4xEB8bOlkzWl7BXxuElpqPlOUeGEht+tp/AAmGNfrbdYZId8J9hIltDr6h X-Received: by 10.28.87.14 with SMTP id l14mr9633683wmb.71.1472469618304; Mon, 29 Aug 2016 04:20:18 -0700 (PDT) Received: from localhost.localdomain ([197.130.174.124]) by smtp.gmail.com with ESMTPSA id p1sm33887208wjd.37.2016.08.29.04.20.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 04:20:17 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au Cc: Ard Biesheuvel Subject: [PATCH 2/2] crypto: arm/sha1-neon - add support for building in Thumb2 mode Date: Mon, 29 Aug 2016 12:19:54 +0100 Message-Id: <1472469594-27315-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472469594-27315-1-git-send-email-ard.biesheuvel@linaro.org> References: <1472469594-27315-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