From nobody Sat Dec 27 01:29:10 2025 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41F916AA2 for ; Thu, 28 Dec 2023 01:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="AdXBpeTy" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6d9af1f12d5so2545754b3a.3 for ; Wed, 27 Dec 2023 17:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1703727750; x=1704332550; darn=vger.kernel.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=5jd6BNzjMN3b9R+N9FmyfxlTWIL2mCpzUIRSa4mv1F0=; b=AdXBpeTyy160x/SIhJk2nyA5lcOeI2kcGqCaAQxHr61jm4u2PSwzafBrwdsQkRrjt2 POF3eAztsFmqFANbGg8yUhzB6OwPNuI8PfVEYXUuLsXDOgzsEzefrjG2zts57dHisRkZ HcuoYUx7q/bRLbLKofTlj3tjIK6cGIQeDU74IRdm55wjHStmZfogUiA7y105qS6+fMWh 6u0kUKAoiYrhOwPbzI3KyIGNCH7Qlkk0UkzONbXdVORLgLxPTm37ysGmeukOPs8n6wN/ 0gc3z949PCYlhOf58oFA5PUe0fFCT/BenHBZTM1Yk5ISnoEr777RXBRxrls/xYFD7Z4L iYkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703727750; x=1704332550; 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=5jd6BNzjMN3b9R+N9FmyfxlTWIL2mCpzUIRSa4mv1F0=; b=QSX433l7nIWNGLw17PraSXm7r+47I4SBdy33qfkFFYcrwJd5X0gAl0NuHJxcAak69J fa8JEy2xfGn1vv4QuCzp/3QIoSntV2J8gy+1Lswo7axWrioJoV7BchpKZxrTXDZjATjQ E2LQRazB9sIFc2X2bQsz6bctsV0oTer4OZ8/hZlLKVlrLAmkUmCaL9GMa5rHP3fk3YCm +k7q+9nhYfHahYDnASPg1pteJkX8AygzLkOaAonxiDI66Ewivkgq17/qcQf3mFznJDN8 8NOdk35U++mmHlqVo83bmRjbnPjeoYlX+jcxz2Vls1O63Ds5D11otaFPJkTIeLrUkjM0 LS/Q== X-Gm-Message-State: AOJu0YySWvRQ+0TzZm2wEjjQhcH4u+a8bx6PmQM32b9A7IXXSfKnOq1F yx2ciASZ+3fe5QlOPWQdixprKVzg8FpI4Q== X-Google-Smtp-Source: AGHT+IE0nmjtDXMxXkCsxA9jA/OWEHDhYnPM1dnj251PyNU2gTBGhxX93h+FmlGsyJJp6FOxSnIuVA== X-Received: by 2002:a05:6a00:214d:b0:6d9:f66a:b5f6 with SMTP id o13-20020a056a00214d00b006d9f66ab5f6mr2059083pfk.34.1703727750207; Wed, 27 Dec 2023 17:42:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 17:42:29 -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 06/14] lib/raid6: Use CC_FLAGS_FPU for NEON CFLAGS Date: Wed, 27 Dec 2023 17:41:56 -0800 Message-ID: <20231228014220.3562640-7-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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) lib/raid6/Makefile | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/lib/raid6/Makefile b/lib/raid6/Makefile index 1c5420ff254e..309fea97efc6 100644 --- a/lib/raid6/Makefile +++ b/lib/raid6/Makefile @@ -33,25 +33,6 @@ CFLAGS_REMOVE_vpermxor8.o +=3D -msoft-float endif endif =20 -# The GCC option -ffreestanding is required in order to compile code conta= ining -# ARM/NEON intrinsics in a non C99-compliant environment (such as the kern= el) -ifeq ($(CONFIG_KERNEL_MODE_NEON),y) -NEON_FLAGS :=3D -ffreestanding -# Enable -NEON_FLAGS +=3D -isystem $(shell $(CC) -print-file-name=3Dinclude) -ifeq ($(ARCH),arm) -NEON_FLAGS +=3D -march=3Darmv7-a -mfloat-abi=3Dsoftfp -mfpu=3Dneon -endif -CFLAGS_recov_neon_inner.o +=3D $(NEON_FLAGS) -ifeq ($(ARCH),arm64) -CFLAGS_REMOVE_recov_neon_inner.o +=3D -mgeneral-regs-only -CFLAGS_REMOVE_neon1.o +=3D -mgeneral-regs-only -CFLAGS_REMOVE_neon2.o +=3D -mgeneral-regs-only -CFLAGS_REMOVE_neon4.o +=3D -mgeneral-regs-only -CFLAGS_REMOVE_neon8.o +=3D -mgeneral-regs-only -endif -endif - quiet_cmd_unroll =3D UNROLL $@ cmd_unroll =3D $(AWK) -v N=3D$* -f $(srctree)/$(src)/unroll.awk < $<= > $@ =20 @@ -75,10 +56,14 @@ targets +=3D vpermxor1.c vpermxor2.c vpermxor4.c vpermx= or8.c $(obj)/vpermxor%.c: $(src)/vpermxor.uc $(src)/unroll.awk FORCE $(call if_changed,unroll) =20 -CFLAGS_neon1.o +=3D $(NEON_FLAGS) -CFLAGS_neon2.o +=3D $(NEON_FLAGS) -CFLAGS_neon4.o +=3D $(NEON_FLAGS) -CFLAGS_neon8.o +=3D $(NEON_FLAGS) +CFLAGS_neon1.o +=3D $(CC_FLAGS_FPU) +CFLAGS_neon2.o +=3D $(CC_FLAGS_FPU) +CFLAGS_neon4.o +=3D $(CC_FLAGS_FPU) +CFLAGS_neon8.o +=3D $(CC_FLAGS_FPU) +CFLAGS_REMOVE_neon1.o +=3D $(CC_FLAGS_NO_FPU) +CFLAGS_REMOVE_neon2.o +=3D $(CC_FLAGS_NO_FPU) +CFLAGS_REMOVE_neon4.o +=3D $(CC_FLAGS_NO_FPU) +CFLAGS_REMOVE_neon8.o +=3D $(CC_FLAGS_NO_FPU) targets +=3D neon1.c neon2.c neon4.c neon8.c $(obj)/neon%.c: $(src)/neon.uc $(src)/unroll.awk FORCE $(call if_changed,unroll) --=20 2.42.0