Message ID | 20231228014220.3562640-6-samuel.holland@sifive.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CA95C3DA6E for <linux-arm-kernel@archiver.kernel.org>; Thu, 28 Dec 2023 03:45:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6RtBM9edBLfHJCsfIWi0SLyeMgqpux4D2h+yalaGoCE=; b=y0nJeMkm6cfW0l JT4K03Qc51SPkc+JcefMHHkzdIUVZzigARYiuKjpVohKkNqbut4+5s7cyXyCz+DD1niZWh5EeaHsW VajVzVwMnpbE7JcjM51JVXT/ecvWLjhDjaFh/JjyC3/QVB+ff4MolxTb/ouDYnNtOw6vi1Kd8KP6c rH9u8j5CmlErTh4U8Xks3/RzxLCdj7v16Wr8/3Yxmb9Z4ibVNCf50qTSySMj0YJULfZyINJh5M58p rb+DqEjX1hIhxEwB/l9xGNkB6DBXtsJ7C+gJtHbbmdMIoLlpLayyECPKepxM7b5wbdA6zs7E+n+w0 G9Y4cKX5Z8R6C8CtAJQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rIhL6-00G3Of-1w; Thu, 28 Dec 2023 03:45:44 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rIfPq-00FrlA-2k for linux-arm-kernel@lists.infradead.org; Thu, 28 Dec 2023 01:42:36 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6da16ec9be4so289650b3a.1 for <linux-arm-kernel@lists.infradead.org>; 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=lists.infradead.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=GA/tc7IjAyFghIieVC+U49MfxLFh3eIKyL5paoLOzcgVoVQ5jm24RY7u1h6iMeyHfJ Eac4KXM7rS9B9iiiS5bRBQm0j97oL8iI+UUBAkjBWJUcx+hpMUcmudMMGipsEQUiOrDV WoZV0hX2hOP3DR4eqXr6s5U3OwopwT60WaG2sAJTQr1asgnU1hgEW1N6ve5h9+HTHV8s RL6YP+xmpX2B1qPPuSxzTQvuW/36Qn2B73oGVsFgYuGB6jNcwefvQPkAehcPDcnnfYoD 5Ya+BL3EZ2EgpcREKARBdNRuNgZK+FlgxZuEogiU1wo6JJkK4VdchF5BZhO+n0lYLxmn QapQ== 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=J9eEIzk8no6x/SFOMF4psISpAbVigMV14aQX0e0iaKcN3/Td9zssxkdSUVLHNnuevn Fxow2uEhmYdkVzbh8dRCmehmqeKOl0yQW2N7MChfM6CwIQB7tsF2uouETrXY/JZva9LE 9BYNsVUysuwGv3WB33xj181BPhv9ZRh0m5df5D5zhOZYny8dUUuvwzfvMAsR81RgzSRI woXVQUJbtE8AvNs6vrmwCsGsL/wq4Fp9vA7PhgLpn/lmfBXgw5NFJTvZ5o0rJInuKpXT zNMRqaSkQPEKZvstGp5n20+xzlgoh3qUPz42y1HdpQGSAgIBu+OqwQLA/PRMlm9urup8 Vb/g== X-Gm-Message-State: AOJu0YwP4cq62Py/IS1k3u1f9ACXuPzkdzVlksLTG1iB+QUJwE6Qe8vT 1rMzlKbxaBir/nYy7U1nWEhQXSW5BgU9uQqqjX+XBF5K9rmtUDrNN7dovVpHPA9MbrXRbJekS+V 2en/2wS6/HrxwxG5DzEYU6Y6dcQb8DVr+KP+NnHwKFSxLYt+l/guSyuyyuBZdlS91shpLUKovW8 QY2MCGkLcwfWgW1TUqdv7fB+sGayL7spiANg== X-Google-Smtp-Source: AGHT+IFXwothAr5BJIcCMrRvq4/mKzewsdDIu4/j3geKR8xiDFkrXQfFhz/93Qk1mZI7uGYnkNSdng== 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 <samuel.holland@sifive.com> To: linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-riscv@lists.infradead.org, Christoph Hellwig <hch@lst.de> Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-arch@vger.kernel.org, Samuel Holland <samuel.holland@sifive.com> 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231227_174230_893424_1BF3D615 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Unified cross-architecture kernel-mode FPU API
|
expand
|
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
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 <arm_neon.h> -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
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 <samuel.holland@sifive.com> --- Changes in v2: - New patch for v2 arch/arm64/lib/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)