Received: by 10.223.164.202 with SMTP id h10csp189640wrb; Wed, 22 Nov 2017 05:50:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMbBDIIEWuC5BT0wkwcmkX2z1RwEnJlixhIbwOsE6ImpPacyu2Z2KKxdOOG0szJuh1o2NT36 X-Received: by 10.99.101.133 with SMTP id z127mr20735533pgb.139.1511358635486; Wed, 22 Nov 2017 05:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511358635; cv=none; d=google.com; s=arc-20160816; b=iW0maPD332lNxKZmWEC/EZVtfWg5LnQsnceQkRifsUPdcymT6lSlj3oyoH9S6eHK5F 2UdzNBi7EfEjKIXrRSf2UDVQFhzabaQAt7/9IHKoSA+Lr+Gs6EAKR0sMPiAu5ca12PT2 gW63cu3MRiAzKl+LTnL2bIZz/pfb/WWF6WMTJ5BQ+sXVQqIoseoOnW2MFurEw3Ph/qim 0IDjHnweB288JX13e+jPiG8Uos6UxYBlmRCT5/UGbBR/52JrDWOgWh1mUmHOaDe0d6nw Ar0r+sBU0ozydkt5Rd0ocxcCy2VZdfd6eNIm98n4HPY4D09IxHp3bae8XWfPyXUxSIeR 14kQ== 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=PP7AljFVB15h1QlVey9W3m089Zm6FxMJmnFhP9b9DHU=; b=Mo6LleO8v7xm19z+kYlZTVtE2U20KDQh+bdZmr07b728iCcgxCcFC8BGkIAvc3eCeH MzoOIG75Y1pZYIPX+cqKYRUpfkvaun2G1CfdWV5SSSvDpTq42XL/yc1zlF1+d5BswXKF QihxdsgGPuLsrPS7hDO+NLAp0c4rDh1pJYPWDwDIZ1HQne0gnEfX3zLRfrbDmFdZcLs+ YVLxugaYnEfTQdXNXeE06tnzOF9JqbNQN5DGuhLCM7WxuKkA/RK7XbE6NlKoilEb4LNP c3PeEql8CuNq5XlDrH0+V8z88m2Ej3K8nOo3XHPgzHTCOWerHGiJ4eFuw2pvqQ4Uo2dq PiKQ== 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 x8si13154200pfi.391.2017.11.22.05.50.23; Wed, 22 Nov 2017 05:50: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 S1751508AbdKVNsT (ORCPT + 78 others); Wed, 22 Nov 2017 08:48:19 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50328 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751470AbdKVNsR (ORCPT ); Wed, 22 Nov 2017 08:48:17 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1FC2FC0C; Wed, 22 Nov 2017 13:48:00 +0000 (UTC) Date: Wed, 22 Nov 2017 14:48:04 +0100 From: Greg Kroah-Hartman To: Mauro Carvalho Chehab Cc: Thomas Gleixner , Christoph Hellwig , LKML , Linus Torvalds , Andrew Morton , Jonathan Corbet , Kate Stewart , Philippe Ombredanne , 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: <20171122134804.GA30796@kroah.com> 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.9.1 (2017-09-22) 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: > 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. You break the build when you get it wrong, so you will notice it. For most "internal" .h files, using // is just fine. Yes, it's "ugly", but again, that's what Linus said he wanted it to look like, take it up with him :) > > > 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. The big issue is when you build, putting those macros all into something logical is a mess. I too tried it and failed. But feel to give it a go if you think it is possible :) thanks, greg k-h From 1584773532826640486@xxx Wed Nov 22 13:36:55 +0000 2017 X-GM-THRID: 1584269821406855532 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread