Return-Path: 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 8BD90C4332F for ; Mon, 7 Nov 2022 17:11:30 +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: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:In-Reply-To:References: List-Owner; bh=rFDzdGuhPZK/eUChc5c6477pNjleYkhl+/piZ7653tI=; b=3rwPuK7eh+ML6O JpCWGHTcN4mZszKMiiNnEzCIAgCWZpAgZAa1a9OkOQKQCMQW5gp6b+uYoxRcDgsSg0p9DI5hiIW9q PzbpeOQVllmX2q5NQwKAUq5Zq0n9jiwvXFH5xf8MDPezXHTGWYyVMIgX7PLRm57LTXZNKjfCVcy3Y 9oGIPko+2gdjT6YD3EnjYhDVdAlGm8Z2Mgyncrj6sSrsD8YfeCeqARWw3utLXAYrnaRAJFhl95cua 5kfpadmU4sD65pNGQhTa3l9F6FfJjthfgZz6fJuCa1O9F/7AKwUTyt6ojFe2ZpYNBJNP9+6VpGaCT SPIlsvrt3sf1qrxi5HKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1os5di-00GXDJ-6y; Mon, 07 Nov 2022 17:10:26 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1os5df-00GXA5-4X for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2022 17:10:24 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7F302B815D5; Mon, 7 Nov 2022 17:10:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAC29C433D6; Mon, 7 Nov 2022 17:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667841020; bh=mSMhzm3XIeAooQT7W0L7GaOpKaKo3pd7R8m95o9JlLs=; h=From:To:Cc:Subject:Date:From; b=FSrMAAM6owcns2mPV1getakcUUvcc3IBfp+TPgbg0eCS5r4deTcaSv4UPNhgo02iR 1pwcBZZ65uuI+kyDd12NdySdeQXJze3Ba/7OVLpK5U6bpv0m5KnOnn6Z1cwcrgMtyq CKhoeUoe4oJQ9UDUmXHP1tcQM1eMOuPbo9jMJ9nq+0rdaRf+a0wzuo7/N1Tv8Q2F6w KATaXnUJYA4uDrebmiPQQY+W5d4W2kBfxdNwziJlN8VM3kxbsmJbqRth+hgv7kHGYd My3Um825ENIOnoWKhYgYCaCbIHtZeLKr6hQkPu9QVq8+GIJAUXghK5V4V9o89FXGju fMcAoHazcZNTQ== From: Mark Brown To: Will Deacon , Catalin Marinas Cc: Christoph Hellwig , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1] arm64/fpsimd: Make kernel_neon_ API _GPL Date: Mon, 7 Nov 2022 17:07:47 +0000 Message-Id: <20221107170747.276910-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1466; i=broonie@kernel.org; h=from:subject; bh=mSMhzm3XIeAooQT7W0L7GaOpKaKo3pd7R8m95o9JlLs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBjaTtin26prjKh/Lnbkxaj9xgSaXEZCnKuiJocEJfc eW/B8qOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCY2k7YgAKCRAk1otyXVSH0Bi4B/ 9ZoXwsBVtVRxfgp0FNRQ5kRDrK1ySDARmdNgk0YTIK2MaPWkGPZI3PiiqS7OXkvB/mxml0EIs9bI8z q+7p5nuCjQGWTxMP8Zw1T8PpDt2JepuPBPmAM/hC93HdvASBCUQZO5VxW3hvVVPE974zEu/qw/KgcO S+1phvFPC0nTQqfSfXMvIE6Kbt7AWpOi74FTnkiSo/XsxTPO1q3nqA2hjZwynq97ob8agb+lIeq5s9 IRE4BnwnPBTKeHXLNaumBEuytMRFn5nnB+gjz0v/kh0fRK9oHG99H4YbyuCSku0xhx61JiZ6aUIFP7 4v1+hoWJXFF9UOcnIeZyhcOcRlgODK X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221107_091023_345152_758FFC4E X-CRM114-Status: GOOD ( 14.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently for reasons lost in the mists of time the kernel_neon_ APIs are EXPORT_SYMBOL() but the general policy for floating point usage is that it should be GPL only given the non-standard runtime environment that holds while it is in use and PCS impacts when code is compiled for FP usage. Given the limited existing deployment of non-GPL modules for arm64 and the fact that other architectures like x86 already make their equivalent functions GPL only this is not expected to be disruptive to existing users. Suggested-by: Christoph Hellwig Signed-off-by: Mark Brown --- arch/arm64/kernel/fpsimd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 23834d96d1e7..1fe7d65096ac 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -1838,7 +1838,7 @@ void kernel_neon_begin(void) /* Invalidate any task state remaining in the fpsimd regs: */ fpsimd_flush_cpu_state(); } -EXPORT_SYMBOL(kernel_neon_begin); +EXPORT_SYMBOL_GPL(kernel_neon_begin); /* * kernel_neon_end(): give the CPU FPSIMD registers back to the current task @@ -1856,7 +1856,7 @@ void kernel_neon_end(void) put_cpu_fpsimd_context(); } -EXPORT_SYMBOL(kernel_neon_end); +EXPORT_SYMBOL_GPL(kernel_neon_end); #ifdef CONFIG_EFI base-commit: 30a0b95b1335e12efef89dd78518ed3e4a71a763 -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel