Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13473474ybl; Sun, 29 Dec 2019 12:45:41 -0800 (PST) X-Google-Smtp-Source: APXvYqz5QMgRXnps1umAiDCZvI/9mVyhf+lwBBfVbV+hfM51r5YE4Jee35/BG901nh5iz1/YjS9H X-Received: by 2002:a9d:7999:: with SMTP id h25mr70388071otm.347.1577652341578; Sun, 29 Dec 2019 12:45:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652341; cv=none; d=google.com; s=arc-20160816; b=rD2f8B+52NbY7BQnqGSgMtig3gmLOz8wg0pnpddjzdAbG95kWWxN4OxMNQmC7H0d1+ 3LL6Lm/fJD6UhQWrUve4vwxVxTqNaV5tf7lH/jOpNaNl7pA1uNwGqrLhF3eQhSkPiWzE /84AfS32jEcVLMa/biqXKZh3U4qd246kA7dBzpPwLPEZLHfyhGJKgu4FHjFH/uWZ/7CG bw59xBW28gHwXR2raj2kWfx9JjsfHukOHIxWAdNc6XycUl6JgLhZI8yGwOuNzdlZcFeV DCTYsZWLEgO6/A25gKlLlbKYITdyeGkeYKi4zfJ0uxVP3TTBE02vFRs2VGcGwtYkreVw Jv9Q== 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=yxKzPG/Q/q2Pbq1B2/WeWG2QQk2cehP5XzvDYCFBJYs=; b=kwqCCoPpGdVQd1osc8bK51R/JLlLKFLFUuATeIETg0hYxK4U2YwF9gFm7Pds1QHhCw vww7I5Brx5iFyzGCIYUt0HO+7LMCNv9wlxiqz8CPShdHmL3eyk6Yak4AaRydMP1PMYBZ AyKHenwgVUkJz2CTvQIt3UYAMJEvIL79d+cSbLeAMSfNoN9dKyGZw7f/lg9d7BgjgGDR K4i1hPkafuTLAB2TYZ9CjhzND0rcOWpxV1Uo6RnPgr4x0QMm/a1ZSM8ew4rpclKazHYX j4PPq52QcXNBuqzqOpP0uHX9EYDd56JR/sV4+uRbnD3kAYxBmN2HHL6i0sVvAw7DYq9n WOCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m2M8jPFf; 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 x5si20009664oic.72.2019.12.29.12.45.30; Sun, 29 Dec 2019 12:45:41 -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=m2M8jPFf; 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 S1731065AbfL2RqY (ORCPT + 99 others); Sun, 29 Dec 2019 12:46:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:55992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731052AbfL2RqT (ORCPT ); Sun, 29 Dec 2019 12:46:19 -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 90A88206DB; Sun, 29 Dec 2019 17:46:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641579; bh=uFNxM7/O65MW/lOtCWv+XHBpUX/dWkTOHmXneIeUm0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m2M8jPFfhRpDCPRTfJioySQdhOrr2B5GDGDOhQmwvBTWoM+ga4fNkVEp1PEMmeJJo IEocHu4FmN3NX7z3am7HOc2x87hExyeQRZRsfH+vaJ+/MZB5iC9I+BbLGrMQE2QC3a F4URahW+nAXDI/mc1/6wEH9sh1OKUeie0YnQJ8rQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ard Biesheuvel , Nathan Chancellor , Nick Desaulniers , ci_notify@linaro.org, Herbert Xu , Sasha Levin Subject: [PATCH 5.4 124/434] crypto: aegis128/simd - build 32-bit ARM for v8 architecture explicitly Date: Sun, 29 Dec 2019 18:22:57 +0100 Message-Id: <20191229172709.933326081@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 830536770f968ab33ece123b317e252c269098db ] Now that the Clang compiler has taken it upon itself to police the compiler command line, and reject combinations for arguments it views as incompatible, the AEGIS128 no longer builds correctly, and errors out like this: clang-10: warning: ignoring extension 'crypto' because the 'armv7-a' architecture does not support it [-Winvalid-command-line-argument] So let's switch to armv8-a instead, which matches the crypto-neon-fp-armv8 FPU profile we specify. Since neither were actually supported by GCC versions before 4.8, let's tighten the Kconfig dependencies as well so we won't run into errors when building with an ancient compiler. Signed-off-by: Ard Biesheuvel Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Tested-by: Nick Desaulniers Reported-by: Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/Kconfig b/crypto/Kconfig index 9e524044d312..29472fb795f3 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -309,6 +309,7 @@ config CRYPTO_AEGIS128 config CRYPTO_AEGIS128_SIMD bool "Support SIMD acceleration for AEGIS-128" depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON) + depends on !ARM || CC_IS_CLANG || GCC_VERSION >= 40800 default y config CRYPTO_AEGIS128_AESNI_SSE2 -- 2.20.1