Received: by 10.223.164.202 with SMTP id h10csp3727825wrb; Sat, 25 Nov 2017 15:46:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMYdkYMhqLme0loW+cxgDAcg1hXgK5AebRz+vEthqgKgCcW6Nblohix8fllRHKMjTD+0PA54 X-Received: by 10.99.121.201 with SMTP id u192mr32345667pgc.69.1511653567212; Sat, 25 Nov 2017 15:46:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511653567; cv=none; d=google.com; s=arc-20160816; b=pyL2RIDT3StFIyfG6jzjiAP8y0vovFYld3pVz8vOaQPkEaL/adewjv67cPlXag2m8M HuMV2kxaoQyt6MZDm0fNQWb6jAmc1WIOdCL0VAmo0DVEV+d3lAiAS9jGsJmZcTjezStE DZ/FHPwdfHNZkozXQoX48hmnqC3vdtGijZeacmfgJNP8H99P9/DVlfHwm6xsbrafU3IS gec37naAvUXLR5AJT56XDDPxyfyKLEfGYPLzd3brDye7tPxEPpeYZov3tjVBm8r0nDTg /0F2x2bDTe0As/2LgSRtI8ebfkQgstspwBqvbSeV1glBp4c9gkUqzGX9QseRctbnlasM nPmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=To/dUa4l2thhtKXHrTc6eH2u6XlxzjlIzGFVsVtty/E=; b=tYeDlwjTLHh7zSjzoSLvaJFRpR63iQw/NwwIyE68lNercNT6eS3l2vfmsZQKv5DT2w Jy8y2h4pmBjCmcitLlV8gWV9RfdvgwYm6PhJoOlrlL/0RC7ORXxd+yU0zjtn0GAXhIdG 71jsywhCj9DRXQFn+hPt/A7U9QlaXOmknoq/klU6OtKVfFTLAK8ht6Q7Mv0hcS262JaB Mvy+Qq6f2a1S5Z45Cyka+LGkNjdTJm6kWtJBVWIislcsDo0TGOpbMPmpuK6USDlf28M1 wXVx7nzsKrSK9dP00cEwSIHYpmj2bOeTpAoqDdbKou9zRFI0uMhY8EddErk2i09V3zK1 iToA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=snaS4SmF; 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 f9si15016519pgt.544.2017.11.25.15.45.55; Sat, 25 Nov 2017 15:46:07 -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; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=snaS4SmF; 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 S1751879AbdKYXmB (ORCPT + 81 others); Sat, 25 Nov 2017 18:42:01 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:40518 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751252AbdKYXl7 (ORCPT ); Sat, 25 Nov 2017 18:41:59 -0500 Received: by mail-wm0-f52.google.com with SMTP id b189so28362635wmd.5 for ; Sat, 25 Nov 2017 15:41:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=To/dUa4l2thhtKXHrTc6eH2u6XlxzjlIzGFVsVtty/E=; b=snaS4SmFC++xL0KMG5k/eGS14pOQ/E6ZIQVhSbFa71hpmsGkY6T+gcP9rPQol1UmlB lpGzZAR+mL26hhWXP7j84kVu/PbbwzDCsI6s1NiwLW8xB7xkVIzh/z9ajyRhQeKoMnNb coJ7hKhb8bpIqOgqbnUYlBpjbveQoxzNekVOT1GhTTRAGpRx7YhEpiG702TysoQFhJAJ TDuWWEneBglqpszF+zZ8lGpgf3d0tqS7yttG2EwcUagbnmweo/LPSqJP8dMK91nus7mP 7/Ivj2ynd7LOVYAducHpBnHg+jPKs80/L0pWif4McqLsS59gxVCyLlgySR++7mQaLuH4 BRjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=To/dUa4l2thhtKXHrTc6eH2u6XlxzjlIzGFVsVtty/E=; b=VXEKX2Ytqx2Fyzc5AyCNC5+25QT5yWWftee4UOAedrFCGly0KKMA0bWYcHfeot/f6K 8N5eLAxoeENgDXaZwMcWKZpVyNxalEAd8Fs3pUbGrkA2cVAuGxjvPD8V4fGK8ndvFVZB JL6kXozjLD8OrRGDze8UL1a0PG2byVYMldNnTWzHHSKHOy8UoaJ0K0feU+1MrDQTEsAW qVvyjcdd+G++m2FBAnmBBxIHJNx4N0u++Cfn4V8DdpgwjTwZ1nzv2W6uX17TAeelAvjZ eIw/DjTtSZkQR+XWlB7vI9k9lOvFHDej2JE8j3iO+1Hv7ACqlsiiSCslQS7eY0+sLJ9W 4BRg== X-Gm-Message-State: AJaThX7jKns6QU048vN1eG4naxJQ/FinpKDwji/7XvYP4NnU39OzgBm8 VjrFx1BMonU8W2HTAVVR+IyueJu010nafMtSNtvwjw== X-Received: by 10.28.237.18 with SMTP id l18mr12648180wmh.136.1511653317559; Sat, 25 Nov 2017 15:41:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.157.195 with HTTP; Sat, 25 Nov 2017 15:41:16 -0800 (PST) In-Reply-To: <20171125185140.GA5114@amd> References: <20171116183306.103584007@linutronix.de> <20171116184358.398030394@linutronix.de> <20171117150639.0e706421@vento.lan> <20171125185140.GA5114@amd> From: Philippe Ombredanne Date: Sun, 26 Nov 2017 00:41:16 +0100 Message-ID: Subject: Re: [patch V4 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses To: Pavel Machek Cc: Mauro Carvalho Chehab , Thomas Gleixner , LKML , Linus Torvalds , Andrew Morton , Jonathan Corbet , Kate Stewart , Greg Kroah-Hartman , Christoph Hellwig , Russell King , Rob Herring , Jonas Oberg , Joe Perches , xfs , Charlemagne Lasse , Carmen Bianca Bakker Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pavel: On Sat, Nov 25, 2017 at 7:51 PM, Pavel Machek wrote: > On Fri 2017-11-17 15:06:39, Mauro Carvalho Chehab wrote: >> Hi Thomas, >> >> 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] > > Hmm. AFAICT Greg translated GPL as GPL v1 or later. That seemed > wrong... and now it seems even more wrong. While this may come out as weird or wrong, this is neither wrong nor "more wrong" when you dive in the details: 1. the meaning of a bare "GPL" in MODULE_LICENSE is well defined in module.h as "GPL 2.0 or later" so there is no ambiguity there. It would have been best to align this with SPDX, but this would break instantly so many out of tree kernel modules and module loading tools that expect these hard coded values and conventions that it is not worth changing it IMHO. 2. the meaning of a bare "GPL" as a the only license notice is also well defined in the GPL 2.0 text itself in section 9 [1] and means any version of the GPL that therefore can be made clear as GPL-1.0 or later, i.e. GPL-1.+: " If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. " Therefore I do not think Greg did any translation and got anything wrong but used exactly the convention in 2. For instance when the only license notice in a file was a terse and unclear: "Copyright (c) Jane Doe, GPL" or "Copyright (c) John Doe, GPL'ed" then the resulting SPDX license id applied was "GPL-1.0+" I personally think this is unfortunate that we have warts like this: it could have been the intent of author, or an oversight, or the author may have meant 2.0.... we can only guess! What is clear is that in these cases and short of any other indication, "GPL-1.0+" is the precise meaning that "GPL" or "GPL'ed" has in a notice outside of the MODULE_LICENSE macro. Note that no MODULE_LICENSE macro was harmed in the process.... though having SPDX ids makes quite visible some discrepancies as you noticed such as when: - a MODULE_LICENSE is "GPL" and the top level license is "GPL 2.0 only": here the MODULE_LICENSE would need to be fixed to "GPL v2" - or MODULE_LICENSE is "GPL v2" and the top level license is "GPL 2.0 or later": here the MODULE_LICENSE would need to be fixed to "GPL" These will need to be fixed over time and this is made easier with the clarity brought by the SPDX id. My take there is that the best approach is likely: 1. the top level license notice should take precedence over the MODULE_LICENSE and MODULE_LICENSE should be updated accordingly 2. you might want an ack or a review from the original author in these weird cases of mismatch [1] https://www.gnu.org/licenses/old-licenses/gpl-2.0.html#section9 -- Cordially Philippe Ombredanne From 1585071466796724866@xxx Sat Nov 25 20:32:27 +0000 2017 X-GM-THRID: 1584269821406855532 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread