Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp828043rba; Wed, 27 Mar 2024 13:03:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViPy0Ql545XL/8Piua9LwsWCNOLpnNtV1J5nExwITWbsN3IFwXneDgyoK1p4IMl3ptRVLmkZBQdpMQ3Xk+ZAGnwk8NaduElJ2YoscfcQ== X-Google-Smtp-Source: AGHT+IGCopM9qEpUD655/O6rRBYocLNyp8YIBOK/BeWv37y491G9jcNr1SyZbqBaZ23n3UulZBV6 X-Received: by 2002:a05:6a00:1827:b0:6ea:c786:ad67 with SMTP id y39-20020a056a00182700b006eac786ad67mr1023204pfa.12.1711569829388; Wed, 27 Mar 2024 13:03:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711569829; cv=pass; d=google.com; s=arc-20160816; b=XeQ3efdSrdCdAHsN1q6ZpUg0z8j2tlq3myyhH82nJwQVc5MXG5kPmGjseOvBA2BjYn U8x7B2e+wPKEGfnSEoEjfl3vh1gVfxOvxZOuVsmVcUucL1eUd1p7Sn28EijsTVvhca0B LwsAisy90xIEYVbmjLvnc47MKB4dEaCz7fdsMQ7HpJFjW3WRoDsKCKK7HKLhcGHVZb50 xk//fCsBWDE2h334DlLtZZjEO2us2SznGKskGbeHMNIi7KLOd4MWhKYozPNTRl7et0RP tv7ejEpix1TPTURnyoxEhiHai8mA8ZCTa45wdRE4/E1+hngxnz1FS4qyoiHyFIaPPwu1 m5tg== ARC-Message-Signature: i=2; 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=JhRrF1Pu1wTofDEF5NDtSjXNjQrJmyXSgj6gSsLdD3o=; fh=CEOavXBdi7Y0Ec85PQEEe2ovCu7WdLdELCDiJuCxDqs=; b=vy7XxA+yAbdqWF0lQPLAnlTCHy6XW09VnhS+3zpeyYnWqE7QdaGS8dn94B1+kZGxsX 4MmIusMhVdiXU4hQRil5c7TMvWLu9n2Dg613shBT/66rGAVbzd/Dnq+Zd2vTGvQeBeHT ylbTLRyI0+4sQ805zH07Lf4PANZ5Wjm6BTAqlwgojJ1hfmWtb+Gc+6EuB23IYs/8Dpru QuR/FqkKCwdtmEPhvnFo2TcQO3GTCxrGXKr6yPw6OC0AFhTQoSS4HyemzZNLan1hIpsX Y5RHIFtXLIoW1GLyVAWz5kmTOuVBdwT+MObP5Z+uvaKnz3SlOfigcuPKZV06ZdHfj5n+ P9Zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="Xt3mXEg/"; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-121939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fb22-20020a056a002d9600b006e6b53989cbsi10362952pfb.58.2024.03.27.13.03.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 13:03:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="Xt3mXEg/"; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-121939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121939-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BDFE228F1C4 for ; Wed, 27 Mar 2024 20:03:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB62B153811; Wed, 27 Mar 2024 20:02:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="Xt3mXEg/" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 7D6E2153586 for ; Wed, 27 Mar 2024 20:02:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711569729; cv=none; b=JZSR5AXvP2uJvIlEsKMUB+3VIKrRsaMblHYZYWRozogCinAsIO5hjiulLyCi503qd8OmVD+EMha64IYM3OMUr/6sRwbV6BiQaQr1DE2BQXD4Q1PKBHGkTaFKSi7HV5hVz4PAKUQTkaBSyatbpvZt4rTXQ/4KEc7r7Fo5xx17Gp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711569729; c=relaxed/simple; bh=TbFyk0hacvmJ9olxKFdeN1kGuF2ppBFDV7NUTUOGoKU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nF64gS0IaSpNi8oxJcE/R+vaUYuD4wERKLVyD8B47eSOd8PeyLD9YwAR3j6awxpWqXjcIyoc2QOtZaKdy8lsiKvhbomVQ+7kDPEAXFc34sZ3q6EQ/0f7YL7OO21KgjhldEV5uU51TbGpGYm3Bb+V/AfxiEajR3kaDtOFDp0nX00= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=Xt3mXEg/; arc=none smtp.client-ip=209.85.214.170 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-pl1-f170.google.com with SMTP id d9443c01a7336-1e0f2798cd8so2273095ad.3 for ; Wed, 27 Mar 2024 13:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1711569727; x=1712174527; 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=JhRrF1Pu1wTofDEF5NDtSjXNjQrJmyXSgj6gSsLdD3o=; b=Xt3mXEg/59MBFTRdgHTEq6/YUBntsUb86f4GlFSntwg4zCn7YLTDRbgitWNGYkIf/1 1ie1g41LPK9JPsrf+60jqIQtnVuU93cQ/JqZjAXruvYz9FTGPSpcUj+NprMiCR8Bz8VV cD1LLe3T05hoNGVyOG+VHrjbdGHmJ1Qe2NxAN11s4L9uEuOuyc1Vtm07cPGwihE1zrCH DG9bRmtcnxyq4Mr0ODh2tailJPdeMwK5Z4LOVqPZ6Gyi0Qh935qTTbTgoR3va3YV1q02 vqGaj0sqCNweTnEBCNN1Rv/FTHsHPqj++I2FMbtDN8OKE2dj8VAtQ8OdAmC5hOp2GE74 BbIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711569727; x=1712174527; 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=JhRrF1Pu1wTofDEF5NDtSjXNjQrJmyXSgj6gSsLdD3o=; b=wYHjecNpX28mgsp058b7jJU3ofHGQuLj393uQ8RqyLf6wUefMI+MbiD8tzl8UATtsa kL2nlQ8VnXZyuhHed5oFrazphigJbU4cdE/nWpMYyFR01ZHZfCWoLyger8YAnu8XnkeY uf6Xr8EtURl2FK+c1DMyKetPyFf+ct8vChIBD9cV+s7bRVGGRS9NjPqcavNTKMmIpsZW r7DJp0DETbHr9Fbt9E82TNr42ryCaNkA1GsY15UUNzaRFool6YJJTJfWDnUZxKpeyxIJ d5V9HXWBq0oaTTVjpvghzaqybBeuq4eBtfUYDOKVR8LAsJ0JfRQVq1uZPau15yTQB94L FouA== X-Gm-Message-State: AOJu0Yxps0Pm7n/Fqxm50BJKWTxAy8Q01tC9dv7u1jkFoWmmfoK4i986 TsW2rVVErRkjdEhEx02ZENPCeDg/XfrBRSxyi8xgPzRajzpg39LTL4o7C6HqIYY= X-Received: by 2002:a17:902:650e:b0:1de:eca6:483d with SMTP id b14-20020a170902650e00b001deeca6483dmr724908plk.27.1711569726983; Wed, 27 Mar 2024 13:02:06 -0700 (PDT) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id u4-20020a170902e5c400b001dd0d0d26a4sm9446459plf.147.2024.03.27.13.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 13:02:06 -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 , Russell King , Will Deacon Subject: [PATCH v3 06/14] lib/raid6: Use CC_FLAGS_FPU for NEON CFLAGS Date: Wed, 27 Mar 2024 13:00:37 -0700 Message-ID: <20240327200157.1097089-7-samuel.holland@sifive.com> X-Mailer: git-send-email 2.43.1 In-Reply-To: <20240327200157.1097089-1-samuel.holland@sifive.com> References: <20240327200157.1097089-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 385a94aa0b99..c71984e04c4d 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.43.1