From patchwork Thu Dec 28 01:41:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 13505553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89F09C46CD2 for ; Thu, 28 Dec 2023 01:43:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vR8yKzdEpVQPBjdYgFWG/8T9cjcajVq7JioK2FI+f6E=; b=X/avLXpUFLRIEZ s9yMOkFoBYcOJADDLnTXPZei50qPVxkGvR5cDZVeEm00v5djjjZu3apI06LG/c/JtcWXp2dt8lnSO nf8HkTmb8aK+b3DwWVFuVszlHsbwIt7XFcFGvoy9RFWB7S7/ghEDHGgUsZLhCZsOnlXGlpVlW20oh u1hnBcTezqtPU1hsnIcY/eBtZiqN05nQSlAyeN9vwJeu9bFHIel2svpQ9dfuskkdpDP94rnJwaCV7 Dsx6wFXG1wjotYFl6jxeLYpfe5aiiYQ06tYjAkbVe4OlUIJjt1nFxc0Y96vMUCBtR4nV0ciR3qXM7 u4RcuV+MV4/U63b0FnuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rIfQG-00FsAy-2b; Thu, 28 Dec 2023 01:42:56 +0000 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rIfPp-00FrkV-29 for linux-arm-kernel@lists.infradead.org; Thu, 28 Dec 2023 01:42:31 +0000 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-204f50f305cso146806fac.3 for ; Wed, 27 Dec 2023 17:42:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1703727748; x=1704332548; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bJe+2iWG7zhbu2gjOAPKG3r+a1/tBb6PXcWtzUfSG2Y=; b=TX73H3rjXVnKloa6uXeuQjfdwEJFjKEZ2yc2lB8rWA9tLpKIiwvSDIO8UlCrPNRDBD riZIZw37PGv8l1DUq1Oe3hFlF8j69npj1EWJNLHg2OmegWpAdpG0NkkvvW2+zM0Bf4oY x3rWISIPsRKn5/SbRiKmUbXGPcdjWGoECjX33yZy1P/vOzl+jfRpTdul+GfDy0ceM1Ll TxmHp+nDMQDLI4vnhs/aIiNcwGGVBPl8uAeZOOCeMB85A1g4Irb98qXUJo2w4Ur5nFgb g1OTLq9zKGyuOxi9mFhf9H9tEdiEnw3zJA11mbj7h5KpBhf095XbfaMX9k3XFIi78rWD f/cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703727748; x=1704332548; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bJe+2iWG7zhbu2gjOAPKG3r+a1/tBb6PXcWtzUfSG2Y=; b=oTue+O0cmPNmrn8dvI0beUUY59e7FJ4LWqzqrE9Nb5c/gSdxmDOMy/LfwxHlmJjhaF I1aQ6RMRdluIHYin0liTDPL/ACjUZCYsWOgKDvQNRDdiy/Wu8kkjpdLcdNmTl218NMQF mA2TydSUAIlzfW7T66NV5SkSzN4UatnQmLK9Oimjrm7Q1G1r0GgEodRc7aY6CM9IiQUx HC6w7syaMTBmbwReIdOPV6ZRuSuk8rspE6oxENe/m2F0alE3qUNSJIRzgMRBy/jHkoT7 dQ633X1MOUiE7EXJJg2zK8Ys+WKbDxMB0PBQwkONjMPifNhLC+zwWrJbAKYXFRYEbu6Q oWFA== X-Gm-Message-State: AOJu0YyJwVZyad8wHuHgGAxN1OktUQmZ0DsUrGW22vR/oNdNHUG0LkqY 1QlZ16jOtdo/60HzrwJx9mATmvxAUFkzjYHrSg6+dsQ1zyU87GA3C0IzFkcoxpPCSIxTptn4xio Kbx0EKYGLCc0piRx1DFUHXo1HzvDXGtKx9GaDKyNEQXD9tmVYX/zEsGynLnUe+pUiGqGfoOzXkm 6uSzk/CRuSAXoiLIf7nFNiYwjrRKN5cvTTww== X-Google-Smtp-Source: AGHT+IHYZaSMdp2QaO80SoY2qT34DsaM+IszcA+ix/EbDuC7szn+dKwMtM8zlpfibfh9dbJ1h4v/ng== X-Received: by 2002:a05:6870:355:b0:203:e0bc:5e11 with SMTP id n21-20020a056870035500b00203e0bc5e11mr10237951oaf.70.1703727746413; Wed, 27 Dec 2023 17:42:26 -0800 (PST) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id g24-20020aa78758000000b006d49ed3effasm7335440pfo.63.2023.12.27.17.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 17:42:26 -0800 (PST) From: Samuel Holland To: linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-riscv@lists.infradead.org, Christoph Hellwig Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-arch@vger.kernel.org, Samuel Holland Subject: [PATCH v2 03/14] ARM: crypto: Use CC_FLAGS_FPU for NEON CFLAGS Date: Wed, 27 Dec 2023 17:41:53 -0800 Message-ID: <20231228014220.3562640-4-samuel.holland@sifive.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231228014220.3562640-1-samuel.holland@sifive.com> References: <20231228014220.3562640-1-samuel.holland@sifive.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231227_174229_735417_F749FD63 X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that CC_FLAGS_FPU is exported and can be used anywhere in the source tree, use it instead of duplicating the flags here. Reviewed-by: Christoph Hellwig Signed-off-by: Samuel Holland --- (no changes since v1) arch/arm/lib/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 650404be6768..0ca5aae1bcc3 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -40,8 +40,7 @@ $(obj)/csumpartialcopy.o: $(obj)/csumpartialcopygeneric.S $(obj)/csumpartialcopyuser.o: $(obj)/csumpartialcopygeneric.S ifeq ($(CONFIG_KERNEL_MODE_NEON),y) - NEON_FLAGS := -march=armv7-a -mfloat-abi=softfp -mfpu=neon - CFLAGS_xor-neon.o += $(NEON_FLAGS) + CFLAGS_xor-neon.o += $(CC_FLAGS_FPU) obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o endif