From patchwork Sun Dec 29 17:22:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 182556 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5460119ild; Sun, 29 Dec 2019 09:46:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxG3zfxWVRuaUD6mNXa52pItXVtrm66FZwFsBSr3OqTmqOu+JQeP8xyijbIrDuodApiBGoy X-Received: by 2002:a05:6830:20d3:: with SMTP id z19mr65320228otq.330.1577641581496; Sun, 29 Dec 2019 09:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577641581; cv=none; d=google.com; s=arc-20160816; b=XQOQQlJhd5oK/omX+9CLHjaDkpsU395RTKDbM01FTXWcGNC8+evvFW0nptYVksRSYh Tgzsklk9iQpZKEI1/PemNqkQzUk5GogTUrTNt2OheUypEmhga2E1ntNl9whkRJyMyBP+ 8LCXpg8+YF6cor4EtRcxmY4pR9BYYXLNEv3JhwGHSfp5iWwmSuUf82hT8eE9O2mR5OqM /98XtYYDrIJVLu75F+5Nnn7O1YzKVi0nmQ8f7DVRdSqvpbUix/91XRFUZHkrT3D6Gsqc 2zhTFrXd9PO449gQuHH3M4X4Ab3kXmHf7rUEPnma/oLP+1aKFu92TSWNQ/0EurlB7qXj G+uQ== 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=hf5bZkREI0VSyholSlyYNkynVddVJjRVp2r56WRNKaUCivUToRNkdFtTMUlmtAK/1X g7zWXIYJRFA8fkgaEnZFgtKuprqNLwEy6Gt73EmNPh63QWfUew3CXcCS1/OYFFNjRalV yGUYtQYe5IyaDNTcXHP8qaQJFrgZK4DMrgCF0UYMVToMakzKa+3hkTWn8uogmRHmdn0x dLSCyK5bgc3xTM5KSCDIBM8qGphJ6SA3ugJVR0zeM5lzv2vKWe3FPmHcm31c2WUyF+Tr 8kIFMgzs2cyNLrqon/udVLmp5f69Yj2y2cp/M0EV0gL6rI4kqfvzCEfyl8jWh9Gwdxs9 IcFw== 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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 o128si19781129oih.66.2019.12.29.09.46.21; Sun, 29 Dec 2019 09:46:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731055AbfL2RqU (ORCPT + 14 others); Sun, 29 Dec 2019 12:46:20 -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 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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(+) -- 2.20.1 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