Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp243110yba; Sat, 4 May 2019 01:16:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxx23Z/eF+hFLexTO5CpnL2dHW/1nYRqZadfgVmsIu/kuPylASblU2KSXOjVnxu4u+rxV3M X-Received: by 2002:a65:4c0b:: with SMTP id u11mr17028705pgq.405.1556957816901; Sat, 04 May 2019 01:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556957816; cv=none; d=google.com; s=arc-20160816; b=WoyZUSWl4W42AHjQ5b5CO/5MEj0SdIwkVkAWR7OHoEhDK2+Y6R+x7pCmrBSlgd3nc9 j0SZ6qi/+/+UcI6vWrIlXBrB3BxeVi40H8fL8j9/6YfN/WiePyz07LvVgGcIeDoBfQWb wg/QNI54qbr1v8Jh5U7AbW3pRAmqgtxcRcJbxxAKsID/lsVQW+qW8dd+BCPP7WV+TA7d gA5IGgBXol1UhELr79XFZUn8PdK7SfEWobn3ZChNrV/bNlswkJCIvbUJQ5ysrGelNr1e 9uqtFMKCdn9LAQNQGW/rXIvzMeN8SnLJ5wRpx42S2h+u1MOxjJlwHN6LSKvPw7ZcNVJa u3gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=uu6S48rYikKw7Dk9ED5O1rooGmxboab81tFgX5aurJQ=; b=ZOTKkTmLoICARR4cJ2kFHsyCKb3yd7403SCXcgJoi9OuAaigb9NGIXgekS0LS4NKaa MpOP6Nx1IaKHb+ZjAEITeP6C5pICgfmES+4Wc3CfgXqJ/n74SKq6RML9M4CWNkmKozoT nHImw6Kq6DdbpBYo5pcoqSkzYbPFOuVewXSA5vV2xGMFOwoj0LYvpowVNJBgg8LXk0rT MSmGcT1p+M3OGevmoXliN+ygboPOJK1iYWu0T+jbDsk16H0W4JJvB4PDSg3P7EogFp7C dlIm3Y3LYMlqQdoExFx3Pf/2FTCaUH6omZrLW1fxYnmmxpiCoVUuL1mUYEg0Uhd0nWPc xHCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yovRT7xN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184si6499128pfg.32.2019.05.04.01.16.39; Sat, 04 May 2019 01:16:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yovRT7xN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727152AbfEDH0b (ORCPT + 99 others); Sat, 4 May 2019 03:26:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:49386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbfEDH0a (ORCPT ); Sat, 4 May 2019 03:26:30 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D90E20645; Sat, 4 May 2019 07:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556954790; bh=7M8LWi4HCapsDw9sC9lfXVqB6NXjC4jpoo3wJEk0Y9U=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=yovRT7xNo6EJS5AH5pqX9Cc4Od3KFmo5LaqMcdp6FyopwPsLd2nTziHl/GpA+WBpU d4vFGD8Skpdj5ktfU/+OD9RfJD9aQqOy0Up285HuLdxvvBa5Qf4OgI47tV230FyQ7W eDAlNqmXnu+A8hJjiJWiGuDBog4HntdljGn1VLhE= Date: Sat, 4 May 2019 09:26:19 +0200 (CEST) From: Jiri Kosina To: Sebastian Andrzej Siewior cc: Andy Lutomirski , Greg KH , LKML , Rik van Riel , "H. Peter Anvin" , "Jason A. Donenfeld" , Ard Biesheuvel , Dave Hansen , Ingo Molnar , Nicolai Stange , Paolo Bonzini , =?ISO-8859-2?Q?Radim_Kr=E8m=E1=F8?= , Thomas Gleixner , x86@kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] x86/fpu: Remove the _GPL from the kernel_fpu_begin/end() export In-Reply-To: Message-ID: References: <761345df6285930339aced868ebf8ec459091383.1556807897.git.luto@kernel.org> <20190502154043.gfv4iplcvzjz3mc6@linutronix.de> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 May 2019, Jiri Kosina wrote: > > Please don't start this. We have everything _GPL that is used for FPU > > related code and only a few functions are exported because KVM needs it. > > That's not completely true. There are a lot of static inlines out there, > which basically made it possible for external modules to use FPU (in some > way) when they had kernel_fpu_[begin|end]() available. ... any for many uses that's really the only thing that's needed. kernel_fpu_beign(); asm volatile ("some SSE2/AVX/... math"); kernel_fpu_end(); No other bits of the FPU API, so there is no way of getting anything wrong because of FPU intrinsic details really. So I don't really see a problem with Andy's patch. If we want to annoy external non-GPL modules as much as possible, sure, that's for a separate discussion though (and I am sure many people would agree to that). Proposal to get rid of EXPORT_SYMBOL in favor of EXPORT_SYMBOL_GPL would be a good start I guess :) -- Jiri Kosina SUSE Labs