Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3701636rdb; Wed, 27 Dec 2023 17:43:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFA0aoKRjOq18ktuxH9igEBi16ZD6bES17nE+vesaUSeM32GXZxmRZHSBGhErnpb/ebo2SN X-Received: by 2002:a05:622a:2605:b0:427:f2c5:6d7e with SMTP id ci5-20020a05622a260500b00427f2c56d7emr1254578qtb.64.1703727819478; Wed, 27 Dec 2023 17:43:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703727819; cv=none; d=google.com; s=arc-20160816; b=aR9dvl5ssNU3cTEhPoltb/59j5WRFtdNAs9gCIh+RU+r+d1x9Lf6ZgyQWfbTvvS3dU 2SL3iWGMAo+FnsL9j8pcIK2+yvuZ9XHC9y3DiuDcYzpDyNxpPYu/FhBiS5BqdnexRdei crkZdceIZkou5umTAIE29O/Jfr4mKdmJgoBo8M1oNp09UwwfcSBKmmv3XMYTjpOC3tuE iwr7imi8LEyulRakuMeRGakmBSzwLXangxtMEMgyNCgMftD5pHUxp64icUvBMhMqX89M i2JyARiuT0ckzPbngwoQ34Np2QeVZMEMuT8pU3rcPAumQwBfPcxool9a49+m9pSNe/2c izEA== 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=BoxXzLgzl7b5Y0xu5pjyo/VkU/XWb+SGTLxU4jp8p0k=; fh=xcb3qhkLQEi6t+Vw3J1T1wFra1a2BdIsNlygM9Jzpag=; b=ZdpJwE+ewuYxg9V8grmixKEZ/O9Zew3+Q02IrpyaV9EgcVWFCzNJGL77DGdY/T6Q6I IHl2MS+KehPCYlbpOKRb0yMIoiiWiVTdSsuavHWROVpLzqW5n5AcXW1vOFB9y/puyvOx oXGJvBkl2yN4qHf5j8h3S5NqJZTMj6rlM3cGk6V7ljn0NdVCgROrpsLjtq2Q9fOwtEjj 9iyH8Q7EGnIsZRj3+sD45d+uxqHySaChpIBDktmMmkDzp7Dqlc99WhbkQJckz+AxK7UI ca+G670OJJ+p/hqCP5jbazEuwayX1Ex8PxauVVBlj+80jRdc2/KzhzseLbrIn5s5YKtS ZJcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=PUF+l61d; spf=pass (google.com: domain of linux-kernel+bounces-12372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k15-20020a05622a03cf00b00427b2719319si11980752qtx.546.2023.12.27.17.43.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 17:43:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=PUF+l61d; spf=pass (google.com: domain of linux-kernel+bounces-12372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12372-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3D4221C21609 for ; Thu, 28 Dec 2023 01:43:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98F1E3224; Thu, 28 Dec 2023 01:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="PUF+l61d" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.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 94AB54695 for ; Thu, 28 Dec 2023 01:42:29 +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-f170.google.com with SMTP id d2e1a72fcca58-6da16ec9be4so289649b3a.1 for ; Wed, 27 Dec 2023 17:42:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1703727749; x=1704332549; 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=BoxXzLgzl7b5Y0xu5pjyo/VkU/XWb+SGTLxU4jp8p0k=; b=PUF+l61dULBFx9BqJizRUQY7BSXzK1zIywqoOajIVLWAfCtySt9aPUkDC/IgSBclRm iqDsd7U66v//+5QULCMm99mwLWnhP1gkKEalhz3J55IwPdcin5uhKNW2zTkXniFnJo2x hyfhsAE69ien/ff0dSVQiVB4NL/0ndLQeB/NKYJjDeN61YCO9glHmPYIx+L2wak463TE vDp4BM+gWhOKbocJ5a7noEPqUL7m3zqZ1KGgCAJ3O01x9/uWFxA2DY+CEZX3oHc/GWCA 4uVczuRwLIq/osigNc/pWe6sgayCeWlJZTfD3Dia3MFWkCTSREYU8nQqqQ+Tf3ain4/h U9uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703727749; x=1704332549; 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=BoxXzLgzl7b5Y0xu5pjyo/VkU/XWb+SGTLxU4jp8p0k=; b=Gp94ePxIJ0ZiUw8wkRpQt1rqrrSqtLBqP8cN4dCUur6kSx+vE9yRYrcCFCVicBrqAF 3lLLHazixhU6H4A6PFa2jkBRR/fydccdEm91vMDttuuwFdNXlQXekLmS1acfxpyTcdh0 PEpewjSvAT09cKRSMQ5A3AQnnTmcCESBBfEvB0JhGU0jfX/avVzQPEehFsq0HX8Mh1/l PNMM2jljwthU9/7vlabh8SlBswuVGXcAn0uT7GRgNLHwGqpZWY4E5OdGDDBO4TT74YrL X+anpkFqNqxtov05TkPuGifi0yemNkbEfV16rCBKn0vJPLTL7YDGVUnQ0/YhLBMxZ85J MDcA== X-Gm-Message-State: AOJu0YyRI2HTxE8P+Oho+pyf8e4PeIdETrsCPbFe4Avxr2bnf9hRmGgf y/olEGiVVFbiw1IA0M/T2qE/27MYI0Hjow== X-Received: by 2002:a05:6a00:4c81:b0:6d9:bc67:82a with SMTP id eb1-20020a056a004c8100b006d9bc67082amr5349494pfb.54.1703727748958; Wed, 27 Dec 2023 17:42:28 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 17:42:28 -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 05/14] arm64: crypto: Use CC_FLAGS_FPU for NEON CFLAGS Date: Wed, 27 Dec 2023 17:41:55 -0800 Message-ID: <20231228014220.3562640-6-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. Signed-off-by: Samuel Holland --- 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 -- 2.42.0