Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3877920ybe; Mon, 9 Sep 2019 00:04:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCJUWQCRMnOasWle3fn43vlJ4LHuAGLmCnB5UO1uu/sbC1oilnJEhiTCAM2QR6odxm4ZpW X-Received: by 2002:a50:e611:: with SMTP id y17mr22709320edm.66.1568012691669; Mon, 09 Sep 2019 00:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568012691; cv=none; d=google.com; s=arc-20160816; b=Pt6s+iylUTQQ4CCyZOeRDhmRm1dHJxXIXXn7k3faDZIu/bn89102Czf9EwmlSiW358 +kvkSZw5t6WUoTko+42lCx9CYkrgg2mE4ex6md0HSync18bzfE/UXCBsj0rRw04WRMVR Z1dy7iqYrOGKL1KWAXSmAc7mFVxBfaOOZ4/elHf4ndlonbmRDPslC50fEtF0cWq76Gxi D21M1UyxgQCqN8UDik0Vl9Qj6OHRM7ejmw/6NP8O0myn3aXRdgb0LGLX1E7ORcWsgBnD v+PgrBDN8a2CEv1nnE+QXouHo08kImLVglUDDQTVabfKCsX5SqQBgNwoy5ZqoCcskScS +bCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=sdo/oblOWUm4KqcVHxs6bhUwKU3rCYOYPE2ONw58zns=; b=HRjM7xq/HYVhOeexLCq5N19cCs5uBeNEbvlMdi6rQF4zzjsVBw/xtL8K8LyLAo5ggC uTlz0Tnr85L5oqN1f/CsR4mGfEvDmfAP8nbxJeTJmuHTDKuRVft3SfmiDl2d8rSZjS2X L62M6/8BUTk4kFTMMKO27OD8xmMRojeeMegZDLI5zQ5KKcD7onW8Ol7liH0gC/6bFWyw yn0QgEc5ngH6VJoKcNZfL4y7osogPhgQd8DoAGARoPwPir+WmglXg9VcXsSXipYf1DVN CYfTZeMZ6bTnPYG/TElNMFJgaSVHqal8Pcdnljlk0fhaZbDzDtvX80h5i2ZbKr1LoWna Hv7A== 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 g13si6677896ejp.264.2019.09.09.00.04.24; Mon, 09 Sep 2019 00:04:51 -0700 (PDT) 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 S1727564AbfIGVRj (ORCPT + 99 others); Sat, 7 Sep 2019 17:17:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:49680 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727008AbfIGVRj (ORCPT ); Sat, 7 Sep 2019 17:17:39 -0400 Received: from p5de0b6c5.dip0.t-ipconnect.de ([93.224.182.197] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1i6i5E-0001ul-5L; Sat, 07 Sep 2019 23:17:24 +0200 Date: Sat, 7 Sep 2019 23:17:22 +0200 (CEST) From: Thomas Gleixner To: Markus Heiser cc: Mauro Carvalho Chehab , Jonathan Corbet , Linux Media Mailing List , Mauro Carvalho Chehab , Greg Kroah-Hartman , Joe Perches , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Sven Eckelmann , Ingo Molnar , Doug Smythies , =?ISO-8859-15?Q?Aur=E9lien_Cedeyn?= , Vincenzo Frascino , linux-doc@vger.kernel.org, "Rafael J. Wysocki" , Andrew Morton , Thierry Reding , Armijn Hemel , Jiri Olsa , =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= , Namhyung Kim , Peter Zijlstra , Federico Vaga , Allison Randal , Alexander Shishkin , Shuah Khan Subject: Re: [PATCH 0/6] Address issues with SPDX requirements and PEP-263 In-Reply-To: <686101df-f40c-916e-2730-353a3852cc84@darmarit.de> Message-ID: References: <20190907073419.6a88e318@lwn.net> <20190907132259.3199c8a2@coco.lan> <20190907150442.583b44c2@coco.lan> <686101df-f40c-916e-2730-353a3852cc84@darmarit.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 7 Sep 2019, Markus Heiser wrote: > Am 07.09.19 um 20:04 schrieb Mauro Carvalho Chehab: > > No idea. I would actually prefer to just remove the restriction, and let > > the SPDX header to be anywhere inside the first comment block inside a > > file [2]. > > > That's basically how this thread started: other developers think > > that it is a good idea to be pedantic. So, be it, but let's then fix > > the documentation, as the way it is, it is implicitly forbidding the > > addition of encoding lines for Python scripts. > > > > [2] I *suspect* that the restriction was added in order to make > > ./scripts/spdxcheck.py to run faster and to avoid false positives. > > Right now, if the maximum limit is removed (or set to a very high > > value), there will be one false positive: Nope. The intention was to have a well define place and format instead of everyone and his dog deciding to put it somewhere. SPDX is not intended to replace the existing licensing mess with some other randomly placed and formatted licensing mess. > > > - write a shebang line if this file is called directly from the > > > command line .. but we do not need shebangs on py modules which > > > are imported from other modules or scripts > > > > > > - write a encoding line if it is need or helpful / mostly it is helpful > > > to know the encoding of a text/code file. > > > > > > - add a SPDX tag > > > > Yes, but this violates the current documentation, as it doesn't allow the > > SPDX tag after line #2. > > Thats what I mean: The documentation was written with only a small use-cases > in mind .. there is no real need for SPDX to be in line one or two ... lets > fix the documentation as I described before. If there is a requirement from the language to have 2 lines right at the top for conveying information then there is of course no reason to insist on the SPDX identifier being on line 2. So the documentation should say: The SPDX identifier must be at the first possible line at the top of the file which is not occupied by information which is required to be immediately at the top of the file by system constraints, e.g. shebang, or by the language, e.g. the encoding information for python. or something to that effect. Thanks, tglx