Received: by 10.223.164.202 with SMTP id h10csp1262459wrb; Fri, 17 Nov 2017 17:32:58 -0800 (PST) X-Google-Smtp-Source: AGs4zMb9CJcdkrQF50KtWcpreFA/n1ruJ0fInp4EIQW8fSYw7n40j7oN06Y4V+v5dUlzbpqUyieC X-Received: by 10.84.235.129 with SMTP id p1mr3369853plk.288.1510968778422; Fri, 17 Nov 2017 17:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510968778; cv=none; d=google.com; s=arc-20160816; b=OKhm4hsrGveg/xCkRgUul/+1GWNjvBG3debWf3OAbdx7Ei2Amg1O5cKn6PYGv9tNa7 iS0n5DRByFbWBEXpIjfieMbg2ssc0ClBd9AlCqD4DOEy5pw1TJ4kYBRPdbb2whtoY5Dq Z2qSrxZfIn/Gd1/gA+aCvUdARWcMIZX1EFm+an5Cy2ufFgS/yvcrGxegojDLElSgdMeW YvkwkZD8zRUFTVeJ3YqQx2rUCBVC7SIN/uW2taC5y4KISOCvnKloqxFnNXMJAJ+252n+ 3MfxZjUM/LQ8a/MCslUmGBc40rdSfKvEqh97ibXdotpxuH0napUJvZKXGPpBSMMp1W6m Ulhw== 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 :arc-authentication-results; bh=DLpgXEeXKGD/mXThcpB3Dj4wW2fldEKw1dawUmhvonA=; b=z08Z5G4J3EVoYWC6QzawXdZKIH0kbOgpMZE9h9pi6T7mdvm0M5KodUUmxO2vRfNsw8 lsgDhpYRgVOU9LEu2CxbLbAbVE0BgrDnMk/+h7ftFUbWsRP6EBQtIVQmx+MgF5oGgu1r NsjaQTA5ksl2PLU6lzohqxsrefs3c6hW/jVRO/076SFuw8S9C2yJzfU9WxD0DmfaTaC8 3HzB/4128J0JPDGkpl/qWkip+jeMdZ2r0xc5zCLbeDtpzx/UL/t18qTRev+PvvJrLg78 LTIPzHrvo4P//t0W3BwB7ZsiHXIiUAj+k5etzgiDiLliSIHeVKg/SarC4hhdw6w8OPmb aPmw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si3553256pgq.757.2017.11.17.17.32.45; Fri, 17 Nov 2017 17:32:58 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751924AbdKQSL6 (ORCPT + 93 others); Fri, 17 Nov 2017 13:11:58 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:51693 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbdKQSLx (ORCPT ); Fri, 17 Nov 2017 13:11:53 -0500 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1eFl6N-0002ZC-3T; Fri, 17 Nov 2017 19:10:55 +0100 Date: Fri, 17 Nov 2017 19:11:41 +0100 (CET) From: Thomas Gleixner To: Mauro Carvalho Chehab cc: LKML , Linus Torvalds , Andrew Morton , Jonathan Corbet , Kate Stewart , Philippe Ombredanne , Greg Kroah-Hartman , Christoph Hellwig , Russell King , Rob Herring , Jonas Oberg , Joe Perches , linux-xfs@vger.kernel.org, Charlemagne Lasse , Carmen Bianca Bakker Subject: Re: [patch V4 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses In-Reply-To: <20171117150639.0e706421@vento.lan> Message-ID: References: <20171116183306.103584007@linutronix.de> <20171116184358.398030394@linutronix.de> <20171117150639.0e706421@vento.lan> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mauro, On Fri, 17 Nov 2017, Mauro Carvalho Chehab wrote: > Em Fri, 17 Nov 2017 11:00:33 +0100 (CET) > Thomas Gleixner escreveu: > > > Subject: Documentation: Add license-rules.rst to describe how to properly identify file licenses > > From: Thomas Gleixner > > Date: Fri, 10 Nov 2017 09:30:00 +0100 > > > > Add a file to the Documentation directory to describe how file licenses > > should be described in all kernel files, using the SPDX identifier, as well > > as where all licenses should be in the kernel source tree for people to > > refer to (LICENSES/). > > > > Thanks to Kate, Greg and Jonathan for review and editing and Jonas for the > > suggestions concerning the meta tags in the licenses files. > > > > Signed-off-by: Thomas Gleixner > > The document itself looks good, but I think it should also mention > what would be the expected values for the MODULE_LICENSE() macro and > how each license would be mapped into it. > > Right now, include/linux/module.h says: > > /* > * The following license idents are currently accepted as indicating free > * software modules > * > * "GPL" [GNU Public License v2 or later] > * "GPL v2" [GNU Public License v2] > * "GPL and additional rights" [GNU Public License v2 rights and more] > * "Dual BSD/GPL" [GNU Public License v2 > * or BSD license choice] > * "Dual MIT/GPL" [GNU Public License v2 > * or MIT license choice] > * "Dual MPL/GPL" [GNU Public License v2 > * or Mozilla license choice] > * > * The following other idents are available > * > * "Proprietary" [Non free products] > * > * There are dual licensed components, but when running with Linux it is the > * GPL that is relevant so this is a non issue. Similarly LGPL linked with GPL > * is a GPL combined work. > * > * This exists for several reasons > * 1. So modinfo can show license info for users wanting to vet their setup > * is free > * 2. So the community can ignore bug reports including proprietary modules > * 3. So vendors can do likewise based on their own policies > */ > #define MODULE_LICENSE(_license) MODULE_INFO(license, _license) > > In thesis, for every SPDX property at C or assembler files, we should have > a mapping into one of those MODULE_LICENSE(). I know. This is on the list of things which need to be addressed. The module license tags are a mess on their own and I have yet to come up with something smart to make this consistent. Whatever I came up with so far requires postprocessing. For files which have MODULE_LICENSE("...."): 1) Grab the SPDX identifier from the source file 2) Check whether the module license string is matching the SPDX license id. This is limited because the module license strings are pretty restricted. 2) Store the SPDX license id string in a separate module info variable Introcude a MODULE_LICENSE_SPDX macro which flags the module info storage as 'SPDXIFY' and let the postprocessor do: 1) Grab the SPDX identifier from the source file 2) Map it to the "known" module license string and store both in module info. That way tools can get access to the SPDX identifier and start to support it. I refrained from documenting anything in that area yet, because we really need to sit down and figure out a solution first. It's on that huge thingy which is append only, aka. todo list. Thanks, tglx From 1584360558210442791@xxx Sat Nov 18 00:12:52 +0000 2017 X-GM-THRID: 1584269821406855532 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread