From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752551AbeAEXFY (ORCPT + 1 other); Fri, 5 Jan 2018 18:05:24 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:52968 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003AbeAEXFW (ORCPT ); Fri, 5 Jan 2018 18:05:22 -0500 Date: Sat, 6 Jan 2018 00:05:20 +0100 From: Alexandre Belloni To: Frank Rowand Cc: Thomas Gleixner , 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: [V4, 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses Message-ID: <20180105230520.GA5545@piout.net> References: <20180105130526.GA31648@piout.net> <7769bd49-146b-ea8c-3b2c-b5987653a665@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7769bd49-146b-ea8c-3b2c-b5987653a665@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 05/01/2018 at 14:48:04 -0800, Frank Rowand wrote: > On 01/05/18 05:05, Alexandre Belloni wrote: > > Hi, > > > > I'm definitively late to the party but... > > > > On 17/11/2017 at 11:00:33 +0100, Thomas Gleixner wrote: > >> +2. Style: > >> + > >> + The SPDX license identifier is added in form of a comment. The comment > >> + style depends on the file type:: > >> + > >> + C source: // SPDX-License-Identifier: > >> + C header: /* SPDX-License-Identifier: */ > >> + ASM: /* SPDX-License-Identifier: */ > >> + scripts: # SPDX-License-Identifier: > >> + .rst: .. SPDX-License-Identifier: > >> + .dts{i}: // SPDX-License-Identifier: > > > > dtc doesn't handle // comments. This works in the kernel tree because > > dtc does handle // comments. > Hum, correct. I got a report saying it didn't and when I only checked the COMMENT line of dtc-lexer.l. For whatever reason, I missed the following line handling c++ comments. I'll get back to the original report, trying to find why it was not compiling. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com