Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3702579rdb; Wed, 27 Dec 2023 17:46:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgIvUDlemcxaBD98WUanHaSfY+fZdEg1QebH3KXm+H1TFAu6pf474z02ZQqLe/6NZsHJcv X-Received: by 2002:a17:902:cec4:b0:1d4:1c46:a9b3 with SMTP id d4-20020a170902cec400b001d41c46a9b3mr10397253plg.43.1703727975150; Wed, 27 Dec 2023 17:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703727975; cv=none; d=google.com; s=arc-20160816; b=nELg5W6mOxUczioNykb+RfI175cVdh8pmBcq8hhVy7to88P2Tl5AiFn96A+jjXMGn3 H40n6m78MjIrVIp0yL425jJz2yAV+vbtHOR6MXcr2q/H2VLbcbL1cBZ/yEDOMIbZtoRq OH8vG3lYGpumnxaqIgCj7Fst6Sw8r9/439iUWDxd0pmiNoCcTQcGFhQs1Ta/rdDEXEwY 85rnvfUbfiwvBri9mqIM+xDKN+7NCIZ18duur5QrFgX4tmvkEpfEXB7trYdGMSu6nk+4 c6LwBTbn6T6k0x8a8dkhobbWPT1TuZsQrsaOeFSO1NbSHYP4kH3VARWkobZbZjF+lpq2 Aoeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5jd6BNzjMN3b9R+N9FmyfxlTWIL2mCpzUIRSa4mv1F0=; fh=xcb3qhkLQEi6t+Vw3J1T1wFra1a2BdIsNlygM9Jzpag=; b=uqJwIw6ABiTUCZdNTt7P10MIRW927BrDn3aQLxVL9EolXWvlr0H+pGg6AgfkYnginl VNndAxqKCQG3loCveBBTNAn6cizcKtJw9jpY4aj1hbY9IGmeY7y0JdnvVuD5mNP7dQFu WeiKU04g31qU6eGSDmzkwktHvWNxIpThXnros0A83W9PEYHyL7SZKi11N1iW3sInvXcF e4peQGmv3aEnt7jfeuaisQOQZ/ynTMfNp9XZ6t2o+VKymbTc6ueDcbX04E2P6s905Nm0 2R59YPF3HtAhrQ2LGcRKgwHzewx5jd5IIMfN/paWdAFUHko/dso5G0cyKGahhpPnPafn S79w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=AdXBpeTy; spf=pass (google.com: domain of linux-kernel+bounces-12373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m4-20020a170902bb8400b001d466549dedsi4550269pls.583.2023.12.27.17.46.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 17:46:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=AdXBpeTy; spf=pass (google.com: domain of linux-kernel+bounces-12373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 45B2AB2257D for ; Thu, 28 Dec 2023 01:44:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 486D76FD3; Thu, 28 Dec 2023 01:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="AdXBpeTy" X-Original-To: linux-kernel@vger.kernel.org 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 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-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: 8bit 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 += -msoft-float endif endif -# The GCC option -ffreestanding is required in order to compile code containing -# ARM/NEON intrinsics in a non C99-compliant environment (such as the kernel) -ifeq ($(CONFIG_KERNEL_MODE_NEON),y) -NEON_FLAGS := -ffreestanding -# Enable -NEON_FLAGS += -isystem $(shell $(CC) -print-file-name=include) -ifeq ($(ARCH),arm) -NEON_FLAGS += -march=armv7-a -mfloat-abi=softfp -mfpu=neon -endif -CFLAGS_recov_neon_inner.o += $(NEON_FLAGS) -ifeq ($(ARCH),arm64) -CFLAGS_REMOVE_recov_neon_inner.o += -mgeneral-regs-only -CFLAGS_REMOVE_neon1.o += -mgeneral-regs-only -CFLAGS_REMOVE_neon2.o += -mgeneral-regs-only -CFLAGS_REMOVE_neon4.o += -mgeneral-regs-only -CFLAGS_REMOVE_neon8.o += -mgeneral-regs-only -endif -endif - quiet_cmd_unroll = UNROLL $@ cmd_unroll = $(AWK) -v N=$* -f $(srctree)/$(src)/unroll.awk < $< > $@ @@ -75,10 +56,14 @@ targets += vpermxor1.c vpermxor2.c vpermxor4.c vpermxor8.c $(obj)/vpermxor%.c: $(src)/vpermxor.uc $(src)/unroll.awk FORCE $(call if_changed,unroll) -CFLAGS_neon1.o += $(NEON_FLAGS) -CFLAGS_neon2.o += $(NEON_FLAGS) -CFLAGS_neon4.o += $(NEON_FLAGS) -CFLAGS_neon8.o += $(NEON_FLAGS) +CFLAGS_neon1.o += $(CC_FLAGS_FPU) +CFLAGS_neon2.o += $(CC_FLAGS_FPU) +CFLAGS_neon4.o += $(CC_FLAGS_FPU) +CFLAGS_neon8.o += $(CC_FLAGS_FPU) +CFLAGS_REMOVE_neon1.o += $(CC_FLAGS_NO_FPU) +CFLAGS_REMOVE_neon2.o += $(CC_FLAGS_NO_FPU) +CFLAGS_REMOVE_neon4.o += $(CC_FLAGS_NO_FPU) +CFLAGS_REMOVE_neon8.o += $(CC_FLAGS_NO_FPU) targets += neon1.c neon2.c neon4.c neon8.c $(obj)/neon%.c: $(src)/neon.uc $(src)/unroll.awk FORCE $(call if_changed,unroll) -- 2.42.0