Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp100662ybh; Wed, 11 Mar 2020 21:45:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvBfpIaeDu/aI9unc7bkWglGeeMNWm/7DzPS1B+iAnmUTAIDKrtUx7fXKGRwvVDmh3++Oc1 X-Received: by 2002:a05:6820:128:: with SMTP id i8mr2679099ood.45.1583988301440; Wed, 11 Mar 2020 21:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583988301; cv=none; d=google.com; s=arc-20160816; b=D/iK3vmmREkgmcTcbnKWIewSn5KXNs4UFQedAGG8XFaFolg/kAeW9SUxU4kWuW4Vzj 4G/AGMTWrO3MoFAXitbzUOIXMCJjzojNlrzYb3x4olBVEfb6pyeU9th4ZsmpFHg0YYsD K32m3Y8cXgywhLpna8ZkFDY+sd3sv1x2yWwwVtYkQ8z+jIdrl5MTpejXVHBIiP5RY437 1gsCw9D0X3XWJVXu++kbGYNk73gFsafbNd2lxLwtjkxZ+5mmiFsuZgUwFPZLtNYbpOuU kdBGCZL6DSZKV1z7XsMntJGxXtZg7e6win8EsLn1BKx8oFSWfo3td/iAgYyPQmMrEfVz LnFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Q3d2VOnJTRkc0KUwFjWpgsLxrfU74kKkDq69SisUdmY=; b=RpoIIaiEY88cggoUdEOlmtiy5ZOB8hsY9bravjiK4/5YuNKdK3mmGADwUyVu5J21kr KPQ2IKPgT6G7CIBCF/hvzN8QlBKMceacWGZ6kRWEGADSmHbkbzgAbNcy+XErS0Ie5FkJ /xECFERUzpL0qrVHbt/c5645oozyifY0iOlZgvBYT2/uNq82sOmzdtiOlk8A+oRDWeut DRfHnulI1+CX9Iv77desXwlVgaP/crqK067wWCt2BkjMs+XcWKAVOrzyX+8NfAZFtNr1 3+96Otwg7UfXHsSxMKDLoE1LtIF8wc0pz7VmMjtbJ6UKOZBBajh9VH8ABc6etodUsQat chMA== 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 k193si997269oih.78.2020.03.11.21.44.49; Wed, 11 Mar 2020 21:45:01 -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 S2387676AbgCLEoC (ORCPT + 99 others); Thu, 12 Mar 2020 00:44:02 -0400 Received: from smtprelay0069.hostedemail.com ([216.40.44.69]:42318 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727099AbgCLEoC (ORCPT ); Thu, 12 Mar 2020 00:44:02 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 5BAE41801E57D; Thu, 12 Mar 2020 04:44:01 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:3872:3873:4250:4321:5007:6117:6119:7901:7904:10004:10400:10848:11026:11232:11473:11658:11914:12043:12297:12438:12555:12679:12740:12760:12895:13069:13311:13357:13439:14180:14181:14659:14721:21060:21080:21627:30054:30062:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: coil35_22f9bd1ddff3a X-Filterd-Recvd-Size: 2150 Received: from XPS-9350.home (unknown [47.151.143.254]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Thu, 12 Mar 2020 04:44:00 +0000 (UTC) Message-ID: <4aadd119d4336de9eafcfbadb951630eb0cf2eb9.camel@perches.com> Subject: Re: [PATCH] checkpatch: always allow C99 SPDX License Identifer comments From: Joe Perches To: Scott Branden , Andy Whitcroft , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Date: Wed, 11 Mar 2020 21:42:17 -0700 In-Reply-To: <7056bd62-4251-f9bb-2b97-15f93a1e7142@broadcom.com> References: <20200311191128.7896-1-scott.branden@broadcom.com> <2c4b42d1fb0bdb6604a72b2a10d49f9eae4b0ff4.camel@perches.com> <7056bd62-4251-f9bb-2b97-15f93a1e7142@broadcom.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-03-11 at 19:48 -0700, Scott Branden wrote: > Hi Joe, > > On 2020-03-11 7:26 p.m., Joe Perches wrote: > > On Wed, 2020-03-11 at 12:11 -0700, Scott Branden wrote: > > > Always allow C99 comment styles if SPDK-License-Identifier is in comment > > > even if C99_COMMENT_TOLERANCE is specified in the --ignore options. > > Why is this useful? > This is useful because if you run checkpatch with > --ignore=C99_COMMENT_TOLERANCE > right now it will warn on almost every .c file in the linux kernel due > to the decision to > use // SPDX-License-Identifier: at the start of every c file Maybe this is better: Just don't perform any other per-line checks on a valid or invalid SPDX line. --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 529c892..3f2ae7 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3171,6 +3171,7 @@ sub process { WARN("SPDX_LICENSE_TAG", "'$spdx_license' is not supported in LICENSES/...\n" . $herecurr); } + next; } } }