From patchwork Thu Dec 28 01:41:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 183616 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1759155dyb; Wed, 27 Dec 2023 17:46:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFl9hKpOu4fE6ruwTKRW6QwUR9qUDQK8pM4HSlf2rDaHAz4XwBKR4OHcODNNrOI9KNd85GO X-Received: by 2002:a17:902:d891:b0:1d4:6a34:b439 with SMTP id b17-20020a170902d89100b001d46a34b439mr4151102plz.130.1703727978235; Wed, 27 Dec 2023 17:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703727978; cv=none; d=google.com; s=arc-20160816; b=aNbZzXnb6W652zlUVw80nBIAswPTmXCFSbbkSmlKqKeSoRT7yj4PjSUz0xKdnh2M2H mfO4FV5Bo3yjN5Cl50ng80aiTuytkU9wW1FEZ+AuF5ytJ+U5+icWAQLuKFg8nXY8rayJ R7KUsOGA4PtB0w4cm2Az8RCKLjMXauFsiz1M+kziOOXXKGms5cfPEAUCkt/I7xCfUl1w 0QKkWggrWpK98WjMe25eDiVzZOBYk0IKq752M86/7XEO4rPir0fT7Tf3iyUsSkqw/30Q aZvSH/qITo1JfPRDVyzBlJNG3kPjOLrUXlAedGGRbkRymgZhJudWy4GkvcJ8m7SYt2AQ jr/Q== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12372-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o15-20020a170902d4cf00b001d44ca8eeebsi3215819plg.480.2023.12.27.17.46.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 17:46:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12372-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12372-ouuuleilei=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 3A264B22981 for ; Thu, 28 Dec 2023 01:44:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BC237460; 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="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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786488268390051671 X-GMAIL-MSGID: 1786488268390051671 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