From patchwork Sun Dec 29 17:22:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 182555 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5459640ild; Sun, 29 Dec 2019 09:45:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxwlbCVoEvq6Vnp6eyxmcDFZryFlSRUUzVrAwjaH3V+V0foWaQEcjXbyGmqt3CMo5kYQCgU X-Received: by 2002:a05:6830:1487:: with SMTP id s7mr47244204otq.269.1577641547143; Sun, 29 Dec 2019 09:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577641547; cv=none; d=google.com; s=arc-20160816; b=gQxLC5DQ47yDoewcgJmjVRafKKISvb/xvvw0ehmefkns96QXgijuKH3rcai09F1pvW eI/wUDr+HOsC4pjPY89qEpY+aXRcmFFfEoyPxOgC0fKs+Kc8of2Wyu/eRcuCI7a/3koo fgrAT5qTmq6mcQzuum8zAzpvdgH9WzClgwq3c+xlL5MEneTZiabFoAz9v7fnSDfk6JSw J5563b3bjxYqF2YlI093rpt/OIZ2qVJ5m+FyoureM+IcQE1rDzktiKm08AW3BPJznSDp 6x8IIEL8pTLmP9xn5eAa5ouuZZodCJX8udJu/+6jHw/WWr+CcDutmNbJ4r8E00PcN8Xz OhVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bqILxdGv3MvpKKUqlMmD+2XyJUNECgYnmHm6kpE+o+0=; b=AqGBeMaZZrusTaE4BkKN5igwPPsQ5wRrcJKYbxMrUnyZlaOTzfW/2KZnBLn1yu4Gz9 T4GQ3G53q2EkJThpWc5oy1yWqAIQrh32bPvcnBl5F8dqlGo94DnpISOboHUuiyuCMsX9 V57PGUlbvv6TwCFiqeAp7hfYqV5iJhxJfQQD9zXntYFkyujzdnk6++PwuKu4mIjF4hMc 7n+3zem64b21VpZA1MHdmFmuRDBzZDa+qR3KHMTYkCBqrfF8zRBG2JuCB8BUvM8xQ5CT dopF5SqDV3ZQpzreVokWrHvzb/aN5zMqDnPI7U24LbLD1w3YahDgbV/TgGozDi4W/i3w IIXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FHk8xTuj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si20697564ota.266.2019.12.29.09.45.46; Sun, 29 Dec 2019 09:45:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FHk8xTuj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730962AbfL2Rpp (ORCPT + 27 others); Sun, 29 Dec 2019 12:45:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:55006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730948AbfL2Rpn (ORCPT ); Sun, 29 Dec 2019 12:45:43 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5771F207FF; Sun, 29 Dec 2019 17:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641542; bh=E7izfWPlwyhCF3cCpQ1/HKIJmhsp2mzd5B227t/0c1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FHk8xTuj60y05Xrh055uE67u2pwwylHvWy88f/g9Xv5WUojgoRX9p4n9/cKAeKzYt sUy8dpH9VddB+91NkNombY7AgFltx48xxz8Wa8E7apxxc+HDO1hcPGXwEypjYOTkMB jBMm6Bruwv6OCTtZj6eQs3ZMRsCQKEfOIY5oZxY8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ard Biesheuvel , Herbert Xu , Sasha Levin Subject: [PATCH 5.4 102/434] crypto: aegis128-neon - use Clang compatible cflags for ARM Date: Sun, 29 Dec 2019 18:22:35 +0100 Message-Id: <20191229172708.377116281@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ard Biesheuvel [ Upstream commit 2eb2d198bd6cd0083a5363ce66272fb34a19928f ] The next version of Clang will start policing compiler command line options, and will reject combinations of -march and -mfpu that it thinks are incompatible. This results in errors like clang-10: warning: ignoring extension 'crypto' because the 'armv7-a' architecture does not support it [-Winvalid-command-line-argument] /tmp/aegis128-neon-inner-5ee428.s: Assembler messages: /tmp/aegis128-neon-inner-5ee428.s:73: Error: selected processor does not support `aese.8 q2,q14' in ARM mode when buiding the SIMD aegis128 code for 32-bit ARM, given that the 'armv7-a' -march argument is considered to be compatible with the ARM crypto extensions. Instead, we should use armv8-a, which does allow the crypto extensions to be enabled. Signed-off-by: Ard Biesheuvel Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- crypto/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/crypto/Makefile b/crypto/Makefile index fcb1ee679782..aa740c8492b9 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -93,7 +93,7 @@ obj-$(CONFIG_CRYPTO_AEGIS128) += aegis128.o aegis128-y := aegis128-core.o ifeq ($(ARCH),arm) -CFLAGS_aegis128-neon-inner.o += -ffreestanding -march=armv7-a -mfloat-abi=softfp +CFLAGS_aegis128-neon-inner.o += -ffreestanding -march=armv8-a -mfloat-abi=softfp CFLAGS_aegis128-neon-inner.o += -mfpu=crypto-neon-fp-armv8 aegis128-$(CONFIG_CRYPTO_AEGIS128_SIMD) += aegis128-neon.o aegis128-neon-inner.o endif