From patchwork Fri Mar 29 07:18:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 13610353 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 3DBECCD1288 for ; Fri, 29 Mar 2024 08:34:17 +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=0rHdm5Y88mwuBC55G4gLpIHvfmEIozFD6f7flXFQ44U=; b=jnvxbULNYZd+F/ GnayelCvbgUwcA5G4XfUtpYABGUqakBWSO+CY1Gm4GcbgUgQPzL/uDxkZJssHXCsm9y9yGTxno+Kz ZL5PO935JQrB7YG8Vt0de2KuPe8jlKC7EwnbSY04zxy94IO/7A+3Cak6pOeie3+gjqifcJnLYxOEy dDEeU6REKPq0Dl/Tw+71cH3LLe8KZFM7EQa1EQUgFQeeq0oRmDV4yl4GJTPacskENYobRE5r65x38 LHgU3Qi9iotpLDhwfAsJBboGtDRVbJzeN06+zUOiv8I+Z1cQs2lIlVSOet4XZ/st7WGbQpXKIMKfH bUaRv9XfnSSK/BM8S3Nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq7gc-0000000HKaY-2dYq; Fri, 29 Mar 2024 08:34:06 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq6ba-0000000H8ZC-414D for linux-arm-kernel@lists.infradead.org; Fri, 29 Mar 2024 07:24:53 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5d8b519e438so1258868a12.1 for ; Fri, 29 Mar 2024 00:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1711697090; x=1712301890; 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=RPRyZsExaX9jqH4yhl7xuz7hAOg3yG/uDoq2R6sqbZQ=; b=JRriq9lyYNURzcZp8Cz2N/1opAsIAQv8Fa/po6rVNtPiOyDnGtMwt4/ZXshtDDcUC4 FWRE8iu9GaTnLiqZB9BFc1XFaSgo4vec2niyEhk3Ysxfe0BPGrCJZ9/9zfZYbZKAS74p uBy45MzMC2qziD69hke2bmTCjSjtWGA0zbmcRb4VfrwGv8sUEx62o1JpO4U6ZKj+YQid VSVrvzmsDIMGo4ajP9xtnIe99fGuhI4ly7EaKzkDsBdQsQZedTnSpFFa4Yj1kus8x9a8 7ziOoFZevjyOfzW0IvFrZJO17To/WA9jBdtJsdsrVJFkJWmXmX9CAEhMtvyCNxkLeeNb zBuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711697090; x=1712301890; 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=RPRyZsExaX9jqH4yhl7xuz7hAOg3yG/uDoq2R6sqbZQ=; b=hkl83EHMqpni/fjZrMch7ImUEafDvmoe8RQuknIV0yiVdIeqS3ZsJxFlwLqUAsMsZZ RvnhMBAeY8E4rarGTS1NRhi/g+6Mvm++PGrJ+GjiprYIA8rYE8/HNJ2pbz1xI4bjJDnW jKHGuf/TRvcUCgVlo0t/gh63NWHB6Vx8c0Iu493okqiDKV/Xhv7ASPqBDqqPYUewzXSj xZwnEsIAx0oItxbV55qOKfjNL0Qo2iZ0SfNJVUkK9EzfXsvfUEAhfHURhekgoCf4KkN0 S2MyUv6KRbJokIjDl+67D2lui9UNItKd5xRpxz9a9NO+tHt3PMpBe8z5OEs9406/PEEV 60Uw== X-Forwarded-Encrypted: i=1; AJvYcCVx1mpn/X48Wl5HKSk+baf51BvSZ1T5OMmb3Bh8GQ4+pO/V09pYR7a6Renyor/VIRgvXaO6XwwSAKXGSX6NW97qyILqrk5ELuQF8vXfWCAAuFsj4Cg= X-Gm-Message-State: AOJu0Yy1dfve/w3f7yS728st8CMvBsleqsRAODBky3X/kUquDTDKcOiU DuSGeH6480GfVjxjl5eRrDShvJSDL9B6YIP8jai1KMn9gvTptez4b7CHmSSzesM= X-Google-Smtp-Source: AGHT+IGTP4+TuVjePLHUufBWyrdagoR69ieuL91+Fm218jTRMOa2nDQVrtkL7zzrGfUrh4aL4xmRCg== X-Received: by 2002:a05:6a20:2db:b0:1a3:71f7:df3d with SMTP id 27-20020a056a2002db00b001a371f7df3dmr1114388pzb.30.1711697089806; Fri, 29 Mar 2024 00:24:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 00:24:49 -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 , Catalin Marinas , Will Deacon Subject: [PATCH v4 05/15] arm64: crypto: Use CC_FLAGS_FPU for NEON CFLAGS Date: Fri, 29 Mar 2024 00:18:20 -0700 Message-ID: <20240329072441.591471-6-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_002451_309997_E557D20D X-CRM114-Status: GOOD ( 11.79 ) 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 v2) Changes in v2: - New patch for v2 arch/arm64/lib/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/lib/Makefile b/arch/arm64/lib/Makefile index 29490be2546b..13e6a2829116 100644 --- a/arch/arm64/lib/Makefile +++ b/arch/arm64/lib/Makefile @@ -7,10 +7,8 @@ lib-y := clear_user.o delay.o copy_from_user.o \ ifeq ($(CONFIG_KERNEL_MODE_NEON), y) obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o -CFLAGS_REMOVE_xor-neon.o += -mgeneral-regs-only -CFLAGS_xor-neon.o += -ffreestanding -# Enable -CFLAGS_xor-neon.o += -isystem $(shell $(CC) -print-file-name=include) +CFLAGS_xor-neon.o += $(CC_FLAGS_FPU) +CFLAGS_REMOVE_xor-neon.o += $(CC_FLAGS_NO_FPU) endif lib-$(CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE) += uaccess_flushcache.o