From patchwork Fri Mar 29 07:18:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 13610237 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 8A246CD1288 for ; Fri, 29 Mar 2024 07:25:26 +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=7daa7xH7Vl/PTowNsPTgpnGn1Kdri1pgs2UXfAURvy8=; b=oTELMZeCnioOyk MYsu7nTiDk8pduPDQTB53Gey4QL2X+C152ieg4m5t/vf2reG2tovGN3H+at7/fLm8oeDnHRGLbpFp y2eTHpHIooJkxUqyJ+3Ay7sX1rdx6Jkf0k9F1pfQGfhmybNfnTqKgZKvzbPWNnqShO+qBsuxHr2/L 3MI4B3dalR1ZxC/OAIfnoOpMstibirf9dVID6KPgBsGMMzEEDcM/SG64Zfr9zOxifFMZdEFDhsbo/ CWhHQEA8KZeOhIXiLhNvN8LyzPyc2nFe6y0qD30XW5NfWXBT5txTUjywUXY6QFiOFLqtVgDonbLpZ c0cC75SVisvGT8zbZYJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq6c0-0000000H8qk-1g4t; Fri, 29 Mar 2024 07:25:16 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq6bY-0000000H8Xq-0sRj for linux-arm-kernel@lists.infradead.org; Fri, 29 Mar 2024 07:24:50 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5ce07cf1e5dso1212186a12.2 for ; Fri, 29 Mar 2024 00:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1711697087; x=1712301887; 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=cDl3drvCV8mQminB8cd0FWY5ZeQD5iRDfGVHISUC3N8=; b=NFrY2hqkzB7B6q5MkqGtWxxwoZJ5c9iAj2Q+ZOv6LpeFHH7YDFU6I//jq5Rxyv17p2 4+vGx0D/X7wx8nFUGi+8Z3LyFdy/CodR/tS/zCeNVaf7BVh5noDldsbSl8byxuA0gJTv do67gt/8gFLqnpRvSAos67FAJj3ggsb15r0BktBBjNGAwNVR0CfLSKA6TfNrsOQVHShy OKaOBGYfZT1jxZOZXwH9PdcJSnGnTtZ0I46H/KS/nq2ZYAaMqPtH+86phcywUE5NgDOz tfPhi+OySoGycWF6NuqRC3wIXpoEp1e40VvajPr8x5myj0jeBEMbD0P48gN2rP075q83 VJ0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711697087; x=1712301887; 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=cDl3drvCV8mQminB8cd0FWY5ZeQD5iRDfGVHISUC3N8=; b=sjtP8Tvk3pRcOj6JcAaFv3snLsRB2D14gsUIqLXg85KJ2itdxej0TurDfN7Suf82G/ ww50N7b87xNU/fTAVOSPKLa1dnqLw1MSQ4TyJSt4W/gUjSHAI0kW1G+X0zghC0YDQf1F Ayqdgbjj9i/EWm5old5SnGBV1BcekP6inT0yVUh/NaMuse8rWWawG6GpvyywV75AdgJb VgGHQOBjyHr1kGPEQMUoClRio3VrPBhHmWV+K4Bhaef/sWl/dUiJo5tFQwHVFy+aeIyj QP2vaRQWP/zWpluTgDbyap0Nf8B5AQfceAxQ4n42nlKNLtGg2NJluBGFtPO3ySltcYdA ysnw== X-Forwarded-Encrypted: i=1; AJvYcCX5iCwj4tkO3sSruuAAUGKYSTwzZHEMeqFTPPSn+wEOaJ0bBU4xJRdhkNvmnbPc71CjN4nEQbGIeOsHSyWyqKuoGRaGVgzDnnRzWFGHGZJDjsAnyDg= X-Gm-Message-State: AOJu0YxRCAoZ4D+K+FQS+1AlHqsD5JHxpWmy3lCpYCMyPtF+5pBwL83H CHO8Sh0YG+krEa8VLlukhq9FPAZCVgo8/mhNa2Gp9NNLBx54Aggsyv0T80JGzvw7A54dqTCBnO+ X X-Google-Smtp-Source: AGHT+IF+FV+uMuQXtJuoJZDILLDfziMVBq/KUES3aiEW6OY8o73iJ5kWmw5SdybGS1gXP7gvN622NQ== X-Received: by 2002:a05:6a20:394d:b0:1a3:647b:b895 with SMTP id r13-20020a056a20394d00b001a3647bb895mr1477372pzg.47.1711697087156; Fri, 29 Mar 2024 00:24:47 -0700 (PDT) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id b8-20020a17090a010800b0029ddac03effsm4971798pjb.11.2024.03.29.00.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 00:24:46 -0700 (PDT) From: Samuel Holland To: Andrew Morton , linux-arm-kernel@lists.infradead.org, x86@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, Christoph Hellwig , loongarch@lists.linux.dev, amd-gfx@lists.freedesktop.org, Samuel Holland , Russell King Subject: [PATCH v4 03/15] ARM: crypto: Use CC_FLAGS_FPU for NEON CFLAGS Date: Fri, 29 Mar 2024 00:18:18 -0700 Message-ID: <20240329072441.591471-4-samuel.holland@sifive.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240329072441.591471-1-samuel.holland@sifive.com> References: <20240329072441.591471-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-20240329_002448_375322_A3DCE681 X-CRM114-Status: GOOD ( 12.46 ) 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