Received: by 10.223.164.202 with SMTP id h10csp160764wrb; Wed, 22 Nov 2017 05:24:36 -0800 (PST) X-Google-Smtp-Source: AGs4zMYdEeEEMNzh/Gu7Oebsiq+hxkqUpV7I89rqZJJeuVlfEi/qfok58/hCIgKDAS63Fj8XLGCX X-Received: by 10.84.193.129 with SMTP id f1mr21718400pld.317.1511357076068; Wed, 22 Nov 2017 05:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511357076; cv=none; d=google.com; s=arc-20160816; b=OvJvzudI2nh728KCIceesJ21olKJOCjac0G1zWd2oVOOHu+e6VriE0jolbldBAak+v mhtD/GzMu3A6Q68770yvENn04k8rybii0doGOSqNgnYsvIxURfmAxTUIhqJSI+rJ6vBm c6juPiq6gCiXcAbo+9TraFAPEZke42p7iwjNmIWAiJsMsYqTsDxLmnjGfII7Tb6JP5FJ II9xbR30ZUYdeCeyzoM2W+NmfrH3+UvPseAfW+pKdkJTvGNtyGV6EYuTNQUPBDyzs21b uCZnupqxGJ+5xG2CzwasaTbrv8c88vunRHiyL1twVEZgSoVHmwXeqgruEttrkHoDFqwW QNxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=q8gUhNxYCbsaxwwwemZLN4umJ3YXZTlV/VEMKCAFW1M=; b=h/Mwp2C4cEcCG5TdXhF3x4p9ZhAMeistPbwrHNVnvLbyLJ5kN+A+8kvmFRQVBm0Y6K taH9YdvSPAqmWjQxe2warSKlHzR49y6/T2ZsqoZKcpMN/NXBI/EZDga1EhhuvmfkM/R/ ccArCtjGB6zmUp9Q41IzWcT0XQG/yy1ORY71PWOp7RxCtVV2rqQHe7i8r79G7hAhyYbb 96dd+pPEQZCJxisusdh8OmgMYUwvt9vXO5UOaF+QKz5G0YVT8QKCE3PnoalS6ZrjzySm Ho2NsR6LyZlEQHtzpXqQ+HDIuTvkpbovsVMg7VgdoCkxTEDnGXezsmkEL320SM+zdKuO pA6g== 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 s186si8688173pgb.692.2017.11.22.05.24.24; Wed, 22 Nov 2017 05:24:35 -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 S1751476AbdKVNXc (ORCPT + 77 others); Wed, 22 Nov 2017 08:23:32 -0500 Received: from verein.lst.de ([213.95.11.211]:44417 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260AbdKVNXb (ORCPT ); Wed, 22 Nov 2017 08:23:31 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 2C407DE413; Wed, 22 Nov 2017 14:23:29 +0100 (CET) Date: Wed, 22 Nov 2017 14:23:29 +0100 From: Christoph Hellwig To: Mauro Carvalho Chehab Cc: Thomas Gleixner , 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: <20171122132328.GA26023@lst.de> References: <20171116183306.103584007@linutronix.de> <20171116184358.398030394@linutronix.de> <20171117150639.0e706421@vento.lan> <20171117183946.GA28533@lst.de> <20171122095117.49c558a4@vento.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171122095117.49c558a4@vento.lan> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 22, 2017 at 09:51:17AM -0200, Mauro Carvalho Chehab wrote: > 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. Yes. > Make headers_install could replace such macros by SPDX comments when > installing on userspace. Agreed. Or for that matter we could simply stick to the comment version for UAPI headers only, and have a macro for everything else. > > - 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(). We'd basically need to add a new entry to a section, similar to how say __setup works in the core kernel. But I think the important bit is to start with a macro now, even if it has zero functionality to start with - at least that enables us to fill the functionality once needed. > 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+. A module always has the least permissive license of all files. From 1584766957551390778@xxx Wed Nov 22 11:52:24 +0000 2017 X-GM-THRID: 1584269821406855532 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread