Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13473807ybl; Sun, 29 Dec 2019 12:46:09 -0800 (PST) X-Google-Smtp-Source: APXvYqySX9sqEJz9zVKNntq5OAtZ8n+daoN5WsHq2SHhZjrkrXZ7WC6WqYa6l7knQcVfJSPcFlV6 X-Received: by 2002:a9d:6a5a:: with SMTP id h26mr72245744otn.103.1577652369816; Sun, 29 Dec 2019 12:46:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652369; cv=none; d=google.com; s=arc-20160816; b=ilMsy7qkfXO0ecmvO+HOOchSfDp3pOfwpLrzPpJgKgAEnvxfC20rCrGASqMxQGr9yc 4SsMDBk6WA29wvbNZUa8lWNu3/6zRqO11ES0ieMM9G1ZpJ1hnOd+rhKnULQoj4t4TUl6 azQscEPrRRUTBnEn92JH8VuMXszVleENE1W2sNJFlRRMRKo/2mxFScYRQnLSZJ2NNQpV Lbxe+yfx3fqUunEDjinbkrN6Yod6CiZcdItlrw0DKaB/bQVAMxIuhdDJl+FDJvAJO8n/ yo5FGVn4Jm0JMohlzr5vH+ok0D4eDJesN1fHDkMT6BirC5EvdjLAFWP6phcHMlkDsXS8 qn5A== 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 x142si17989768oia.220.2019.12.29.12.45.58; Sun, 29 Dec 2019 12:46:09 -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 S1730957AbfL2Rpp (ORCPT + 99 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) 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 -- 2.20.1