Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5287746imu; Sun, 20 Jan 2019 07:34:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN7y8i85FqlHrWeaSh8W6/057q+n4bz6/WxO89MUYw3bGn+QVtgq6kU3JB67u+V5n68Y+qos X-Received: by 2002:aa7:824f:: with SMTP id e15mr26088496pfn.192.1547998495977; Sun, 20 Jan 2019 07:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547998495; cv=none; d=google.com; s=arc-20160816; b=epFyKnoSQT137YrxH2VjA9IQjSCvpb+H68ekgxoZ+Y5Nb58/TQz3OCwcL9zKZME2K4 NzX82LIB3HuCtZWh+xurg9IEixChc8w1k9hfeejTj1sHGbTUEkQdhbOZLSvlbJ3EyFU8 IT22TM3WRk9a85M/eN42JBMErNovxl0B+j83rqPZRSk5srhhlnXRioaZ6MrfWQ9T/LxU bUvJZNppEXLiL7Kq0Enbru0/rlEeFnl7FzfLxLjEyHN+HDsHh7aqBDVbm60tHaWFPYtg GZ1UA1PXs04dk9B+yfxetUu0QYR6aKUCmRBtv2C33cHps9igWUqiA4e+MdWY2IYnfRSu D37Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NwAUkA++twguoFIi3Kp52KxrfWGoyZVzGqXX9qgzIPs=; b=ASHQZxel+okLyKURv3ecSWHn8mWq9qm8izXyjP+JusPmAFTjHCgTx5YFUplOl7/1Pl 22ExfH4AGxaBTUNWAHt2IK2h0WkeZzq50/CPCG0lIKrWQY2n/fe4CWTrEi/oNxD9WGTk DcxwIbS15fmzMyc411Mo4ucwdrS596PUTq2OBo/arOfeokeNYassddAk3bHwVlD32sj9 hmGadKVwBWCnbmHlvqXZWux2h/yDo+9odQUOBEAUznGKCLCxfAXzQJbEt9lH0FDlGetD XkcrMw08LA3lIlKMdw4+VPBnSzwD1uAa8bkqHghEKotl+4RC8ft+AegY/cLmjTT3l++4 tcsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=aI7HarUD; 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=narfation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16si9861533pgh.185.2019.01.20.07.34.39; Sun, 20 Jan 2019 07:34:55 -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=@narfation.org header.s=20121 header.b=aI7HarUD; 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=narfation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726724AbfATPdH (ORCPT + 99 others); Sun, 20 Jan 2019 10:33:07 -0500 Received: from narfation.org ([79.140.41.39]:34374 "EHLO v3-1039.vlinux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbfATPdH (ORCPT ); Sun, 20 Jan 2019 10:33:07 -0500 Received: from sven-edge.localnet (p200300C5974E31FD0000000000004065.dip0.t-ipconnect.de [IPv6:2003:c5:974e:31fd::4065]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id D538311012E; Sun, 20 Jan 2019 16:33:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1547998384; bh=lZPFMe/5HXUsCryov7z0A+6Rpv0uxdtNA8LptfTIeFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aI7HarUDPSLNO67T8Mv5NIYlYETL/w6gnbr83Nx98OGdgzb6d/vTcwpDwRhu7sRaS CLgHStRnY9ZgR2rpkBEQUmo+lLm/ArOn4sIPWjlX5fwZX7c1DDKVDzTN0mcH9o0Vav hwOI5pD1m8DPsza58k6LMzCeiRE8De6QFYC0KPOo= From: Sven Eckelmann To: Thomas Gleixner Cc: LKML , Kuninori Morimoto , Simon Horman , Yoshinori Sato , Rich Felker , Andrew Morton , Kate Stewart , Greg Kroah-Hartman , Jonathan Corbet , b.a.t.m.a.n@lists.open-mesh.org Subject: Re: [patch 2/2] scripts/spdxcheck.py: Handle special quotation mark comments Date: Sun, 20 Jan 2019 16:32:55 +0100 Message-ID: <3904432.cpar7GfAiZ@sven-edge> In-Reply-To: <20190116104127.698565432@linutronix.de> References: <20190116102651.489113812@linutronix.de> <20190116104127.698565432@linutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1720244.jrHZZGNX3P"; micalg="pgp-sha512"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart1720244.jrHZZGNX3P Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Wednesday, 16 January 2019 11.26.53 CET Thomas Gleixner wrote: > The SuperH boot code files use a magic format for the SPDX identifier > comment: > > LIST "SPDX-License-Identifier: .... " > > The trailing quotation mark is not stripped before the token parser is > invoked and causes the scan to fail. Handle it gracefully. [...] This patch introduces a false positive when checking files with an ANSI-C style /* SPDX-License-Identifier: .... */ comment line. $ ./scripts/checkpatch.pl -q -f include/linux/bug.h WARNING: 'SPDX-License-Identifier: GPL-2.0 */' is not supported in LICENSES/... #1: FILE: include/linux/bug.h:1: +/* SPDX-License-Identifier: GPL-2.0 */ total: 0 errors, 1 warnings, 79 lines checked checkpatch.pl is already stripping the "/* " prefix and only sends the remaining "SPDX-License-Identifier: GPL-2.0 */" via stdin to scripts/spdxcheck.py. Thus the newly introduced check > + # Remove trailing comment closure > + if line.startswith('/*'): > + expr = expr.rstrip('*/').strip() doesn't match and thus the code doesn't remove the " */" at the end of the line. Kind regards, Sven --nextPart1720244.jrHZZGNX3P Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAlxElKcACgkQXYcKB8Em e0Yp4A//S9LSe/7QRX7rwb8+URrAa4NeSlLqK9xkIEu8l1qH5JgHUNBXbyx4vLEv EG/IiMskFVwaExXSvgjrE5IMgKGfeDgd+7G+lYHmcMHrO6brDH5Onbc3t9XHe+8O dmHa/WLZeYQuvt8iAOuzkGp8s1mUUnDPyN4HiC3ObU53PDCW0mfF9O9HPNEQikjX avqzO+wyKyBD52h8UYzPVinVble2nbF6wkrxYpUURsZsNtpyiCFg3okKlfbqa+Mb 2gT8nqvNZ9cc8d9QVlg/theMfS5mTcQoBVPCw8ExQ0s7hwO4OjswXTLhh1Dpo6MY GtEIs68qvQyYOPkfm2KWTeYc4okNBOfJKDprbUk7Kql6LUMhiwE8r2H/M5SNE61s I8Y5n1oSi3MW3h0Ihqu25XyJ9pLmCgI+Mo7PC/kSeSGahMjnZiPlYXb0OwWl2Bjx yZoRGkZk4RWAIcAPQkT6IQHi32HYzZUuHPqeIp/H2X0K6lAPMAjdDZV1LTxYP86d XcmfiBCxBV8PoCmvxzxxK8K5LCXFcbMsPBzJPfFThQmUh7xLRB3XMC49cQTJetMt 0NhaIHgwG2maPRfxH5rDv2uRADDRvvS6bCTbIEb/GFELT+0sOWqUYpn6fNUPjx7y XBDhZOKSMbQjGccBSExaR3g4rlgsROgh0el0C55tK3V4VAdsd+U= =nnHA -----END PGP SIGNATURE----- --nextPart1720244.jrHZZGNX3P--