Received: by 10.223.164.202 with SMTP id h10csp59756wrb; Wed, 22 Nov 2017 03:52:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMakZBDcDOWz9VVmEvnO7sur8Nnw2y2rs7aw5sBByCavjE3j6Ei0sGSUAd9lrwvxvz0lLZ8U X-Received: by 10.84.231.2 with SMTP id f2mr20599095plk.256.1511351545006; Wed, 22 Nov 2017 03:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511351544; cv=none; d=google.com; s=arc-20160816; b=uI5CoyIUmvoxsH9r5PblIFYlJn9AkjXK7OVlrRYM0I/O+m+w6l1o4x6HRXETMrCazK SW8EbRTcIQoJFd/8uIw0zeKjcfA9jk9KewcXzxTWG9liQkX5sOT5y1c8eB6BVea2iy1X rFzfhD8TixSWFFeFl17IDOfZoeBJiec3uXYXdRQfOtwwewAILQjLGQVgFcBlnS6gqasJ uzkUiDEAbRhaUWt+f1xA4qLycsGP11z3Nlto0npUw70MfY+8mzbsPoCnt9tNjc4vvvYm jjzqPgXCpm6kpHiW2F+esfEwuiqq+8iiR1w3S11OXMcOa0swI/2lMkbxRQ4Y1zx9x2jb 7XmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=NLkHovv91uqhHxx1Veqxlvt/rGzZVTukMMi+dQoElTc=; b=umNMHtNh5oe7+4TBBL/aGUw0JtNWK908OgQbc/WYcK+q1vHULJGtn6HfsVmShULiPW M23qGUKoIKmM0EUFGQITc22ed32YKSC4cHYCU8XyTuQ+HIRPhm2dYToSf9tj5/8ua77W sdrQ2NTaGAsC7Yay3nZXJDfkaG/5/BDCFodIsmCwxy52wcOVpcMe3HcsfGD/i8gIYbf2 g7elLXrixYPbpPDL/VQcav1Rjk6goAPtW4/+kuSN/2c0iOeY7f57YiIjJg2hmcirI27P t+T78jBFG5VZnAQtXICZhyClHUwAOMzpAjSwaQZqTbpzPv6nZ99Nn6/D4Pg82M4FtH+q /2Ww== 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 j10si1617713plg.317.2017.11.22.03.52.13; Wed, 22 Nov 2017 03:52:24 -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 S1752424AbdKVLv1 (ORCPT + 77 others); Wed, 22 Nov 2017 06:51:27 -0500 Received: from osg.samsung.com ([64.30.133.232]:44231 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbdKVLv0 (ORCPT ); Wed, 22 Nov 2017 06:51:26 -0500 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id A79DE13E69; Wed, 22 Nov 2017 03:51:25 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ThG9Sg5zVOu5; Wed, 22 Nov 2017 03:51:24 -0800 (PST) Received: from vento.lan (201.86.166.127.dynamic.adsl.gvt.net.br [201.86.166.127]) by osg.samsung.com (Postfix) with ESMTPSA id B94B213E61; Wed, 22 Nov 2017 03:51:20 -0800 (PST) Date: Wed, 22 Nov 2017 09:51:17 -0200 From: Mauro Carvalho Chehab To: Thomas Gleixner Cc: Christoph Hellwig , LKML , Linus Torvalds , Andrew Morton , Jonathan Corbet , Kate Stewart , Philippe Ombredanne , Greg Kroah-Hartman , 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 Message-ID: <20171122095117.49c558a4@vento.lan> In-Reply-To: References: <20171116183306.103584007@linutronix.de> <20171116184358.398030394@linutronix.de> <20171117150639.0e706421@vento.lan> <20171117183946.GA28533@lst.de> Organization: Samsung X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 22 Nov 2017 12:12:04 +0100 (CET) Thomas Gleixner escreveu: > On Fri, 17 Nov 2017, Christoph Hellwig wrote: > > On Fri, Nov 17, 2017 at 07:11:41PM +0100, Thomas Gleixner wrote: > > > Introcude a MODULE_LICENSE_SPDX macro which flags the module info storage > > > as 'SPDXIFY' and let the postprocessor do: > > > > Shouldn;t this be a FILE_LICENSE_SPDX? I'd also much prefer that over > > the nasty C99 comments to start with. And while I'm a bit behind on > > email I still haven't managed to find a good rationale for those to > > start with. Yeah, I also find nasty to have things like this on each C file: // SPDX-License-Identifier: GPL-2.0 /* * Copyright ... * ... */ Also, one may forget that headers use /**/ and end by doing the wrong thing, as a common practice is to just cut-and-paste the same copyright header on both C and H files at development time. > > > > So it would be good to figure this out before people start spamming > > the lists with all kinds of mass conversions and checkpatch fixes > > for licensing.. > > I tried solving this with a macro in the first place and ran into issues: > > - Does not work in headers, especially not in UAPI ones Make headers_install could replace such macros by SPDX comments when installing on userspace. > - Breaks in assembly, boot and other special source files. There was no > easy solution to that and the result would have been to have macros in > some files and not in others. At the end, we have different markups, depending on the file type. I guess the main problem of using a macro is that a module composed by multiple C files will end by defining it multiple times. Not sure if gcc would do the right thing on grouping everything altogether and producing the right equivalent to MODULE_LICENSE(). Also, at least on media, I found cases where the same module has multiple licenses, e. g. some files that are grouped together on a module are GPL v2 only, while others are GPL v2+. > So the fallback was to use a comment and Linus decided the '//' style. > > Thanks, > > tglx > Thanks, Mauro From 1584764515124409378@xxx Wed Nov 22 11:13:35 +0000 2017 X-GM-THRID: 1584269821406855532 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread