Received: by 10.223.164.202 with SMTP id h10csp57535wrb; Mon, 13 Nov 2017 02:37:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMZR/Fe67DgjFAcr7gpmw6Y8hfauxUYpbIT75EEZ2L6Mwv0eidRIpKnNJG/KP8hLHXHaoERi X-Received: by 10.84.168.100 with SMTP id e91mr8557014plb.430.1510569444982; Mon, 13 Nov 2017 02:37:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510569444; cv=none; d=google.com; s=arc-20160816; b=pQ3bPQZ+GLNHn3FfvPCyo7l3FOorKM+HvI2Dl5TD8HaUvnwghKTz5FmGOGvaIhE0D3 bz08gajrtCB0KEeO8biLB0J9BtT9QqMUq608sCMssDBGw7pSa1UpbldySBfHF7nHLcHK DvfpNRm+CxHImfqHESbvsik62FrOm0QgJvr5adP/+5jBsN5DYC028JhQkeYAxW+2psul RdFKbXMM1peeKIJzEGEF1j+fQPBggVKsnAmA53TNYfFzp/VCXkZdJvzl99s88t+ePhM6 0ydb07LrBXikFkh32G/EUe9+T6JO1il2tso/pNcyaS6yuVW05wsSSb2CU/S9B+q6lRG3 hFHw== 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=tQBD3lYm1XKmlUazSSEaJp2Zovo6Rxty2y95kuajymY=; b=c+fq48wjsInZ+2PqlPt/UeXnxVoh0cYIWasD5cqSVKVHplEE3UAaCX1qxgr+PnPiOa 7V7CjU77jTBTjuBr78m4xbr92sjXYzHE53TfWvA8g0nzsuP5s4j+sLySNcsKK5/O9/mz LRSIxgfpas10s/crhpLsAj8AMJxaooqDWqxpjpcefjApHS50oQj60cywxBzEgzQx/0Yc sPWPP5srq2+HVFr36XCgjL5StHggeZGHvDWPqMLNW3JpKtjh82hQRCDExD2Wp1BzhiIP XYXqV564DWLkA8B6EIKYWgzkhvBWzDAkCQiz3fds65/SwnpRzypw4fVPIAod2We/x0Mu BCjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mv9SwreT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q186si9495218pga.657.2017.11.13.02.37.11; Mon, 13 Nov 2017 02:37: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mv9SwreT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752280AbdKMKgd (ORCPT + 94 others); Mon, 13 Nov 2017 05:36:33 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:51238 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751515AbdKMKgb (ORCPT ); Mon, 13 Nov 2017 05:36:31 -0500 Received: by mail-qk0-f194.google.com with SMTP id f63so4557058qke.8; Mon, 13 Nov 2017 02:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tQBD3lYm1XKmlUazSSEaJp2Zovo6Rxty2y95kuajymY=; b=Mv9SwreTGwocQLkPGpzhGY0xr0VPeuUGXPxDvPMGZermI/ZLC+9vAs1XamtB6lqqbS WUbyGt24KwOihlSIeNefm3ydU4K293u5A/7C6pGIFyJWHURmgPXc0yT8eZK7fqSPm/UL 0EdBNttlvTjUw8b5ly7L4EkJkGhiSyK+QrfNeSvZrso2NqSVNEfigm+J0AI/PA69C2cX OyzsNi/CbVKuHT/Usp3kA4D+DNxB0yc3IXvDmRL7KYkyNAlCfddphBQJzkFWt/y+LqN6 1Fa9zGZK6EPM8EYa2z/T1WKuRjkXOdG2qrZ7xslIm2Hoxn1I6pGoc9VNeF/dQEb9+Slx 7JbQ== 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=tQBD3lYm1XKmlUazSSEaJp2Zovo6Rxty2y95kuajymY=; b=rJ4upqTK69JszzlU8ysbbmQaOkVChv1oslpXgnHKvSai3wAw4Wc0SOY/5a4C4c//nH urhJ0T0AJA4Zv6lrTmt99eNbjbWB1QuhrE/bf56ZSHl9WNxaxod/689Gwmft5DjpkGZB YLciAEuEQWz36Y8DuLMTinxLeUVErgnczdXcmyPlJvQ9OSMykpcbHjN45LHghwd1Dar1 Fc1WdvQxamgGD6c0cqCP7qIMZvqPhHxdw3JUSCBOQgNLPv91bye9QUNNUEb433Dq+8he REXOd/2JpmHcmbJ8iJBmopEeIVAlft3dwFATJVtnCNOrZUgD1wc2h/4Ppbt/MS/EUJND +fOg== X-Gm-Message-State: AJaThX46xWzGqZVi5wyhpX/QKSupE4aWpSPGPLvrQ5BMt02+rCJnpKAP yCZVLgM1Pun2DBHRpGQ5C8KQHfuJ8X2Mak8JL4I= X-Received: by 10.55.183.134 with SMTP id h128mr13141835qkf.258.1510567464993; Mon, 13 Nov 2017 02:04:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.52.161 with HTTP; Mon, 13 Nov 2017 02:04:24 -0800 (PST) In-Reply-To: <20171112192142.525567667@linutronix.de> References: <20171112192142.525567667@linutronix.de> From: Charlemagne Lasse Date: Mon, 13 Nov 2017 11:04:24 +0100 Message-ID: Subject: Re: [1/7] Documentation: Add license-rules.rst to describe how to properly identify file licenses To: Thomas Gleixner Cc: 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, Kate Stewart , 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 Hi, Looks like this superseeds my patches - https://patchwork.kernel.org/patch/10054727/ - https://patchwork.kernel.org/patch/10054719/ - https://patchwork.kernel.org/patch/10054721/ - https://patchwork.kernel.org/patch/10054725/ - https://patchwork.kernel.org/patch/10054723/ > +License identifier syntax > +------------------------- > + > +The SPDX license identifier in kernel files shall be added at the first > +possible line in a file which can contain a comment. For the majority > +of files this is the first line, except for scripts which require the > +'#!PATH_TO_INTERPRETER' in the first line. For those scripts the SPDX > +identifier goes into the second line. > + > +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: > + > +If a specific tool cannot handle the standard comment style, then the > +appropriate comment mechanism which the tool accepts shall be used. Most of the things sound good. But I really don't get the first-line thing and the C++ single line comments in C sources. First there are already tools [1] from the FSFE REUSE project [2] that support it after the copyright header. For example, the REUSE example project uses this style for cURL [3]. But is also looks quite out of place in the source files. Here what it looks like right now in the kernel: // SPDX-License-Identifier: GPL-2.0 /* * Copyright(c) 2015 EZchip Technologies. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * The full GNU General Public License is included in this distribution in * the file called "COPYING". */ The REUSE cURL way would look more like: /* * Copyright(c) 2015 EZchip Technologies. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * License-Filename: LICENSES/preferred/GPL-2.0 * SPDX-License-Identifier: GPL-2.0 */ And to the C++ style comments in C-source files. Way wouldn't it possible to use a common style in C source files an C header files? C source: /* SPDX-License-Identifier: */ C header: /* SPDX-License-Identifier: */ Thanks, Charlemagne Lasse [1] https://git.fsfe.org/reuse/reuse [2] https://reuse.software/ [3] https://git.fsfe.org/jonas/curl/src/reuse-compliant/src/slist_wc.c From 1583893009891160976@xxx Sun Nov 12 20:21:23 +0000 2017 X-GM-THRID: 1583890256805737544 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread