Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp7040ybh; Wed, 11 Mar 2020 19:29:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvExY9bK5CTMqH0wyTQ+11vDFlng+LD/Ioy+NVtBFjzLwToSBI2hfSNgHMgVbcfIlAEo3ZH X-Received: by 2002:a9d:6255:: with SMTP id i21mr4820161otk.183.1583980141200; Wed, 11 Mar 2020 19:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583980141; cv=none; d=google.com; s=arc-20160816; b=T6Q0o40Z4HDUE1vWXeYrOE0bgeqR6jYQSFtz6oFrovcu8eWkB+JXUhPSTnBbSRNv1Z OR5b2srY3npU/Q/Jcq67v/iDFNGhsSFyzBAi1CUFIgE2Bup9g00uOJ5C/MZxfpC1aV5I D2ma6L0y0w3OnJ86pXFO68PYpgl8eswpYMHKkH8I3sXKEJO22CzBaqE0WudpkgHSppNW UH98OkXyFkUQtvpKQniI/5YCe3ERV6OkjIIAs2Ql0SxdPujsp5RlFgPYdCHo/0lKMySU muzIRHYHOpW/muxhp1qmLn7IDjUupv6qsjpUqZ+1ZJnvID4oMg2loHaVp7sN6G5bKtqk +0UQ== 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=pR5/wA7bPFx+j/3QJnsBvgLqIShJH6M86p4JxIUC0us=; b=P4n1JZZZBCQk2jgS229HR82h1MDYEcy4Oq7mfimioVsZXyjMop2Fu9fhEbZ0qjTwsY OGNO26n8BULeNvUeXKbXvJy/9hRjoxQZ70PseRRPk7D6ZCJkg+Bb4ZQX6bB3+w/yNCpv YObMfARjLsHY2/xFPdW2QOAI2bd9LOlzn9rFl0DK+4q1dXadLAQEp49Pd4ukpqeLHLB5 jCADHbeHk/4rbglj9y6TSUxzZO96sLAd+Mtn7kr3VG2muTOKpN99Ggnsj2z1y33fY7sZ 4AgA2exi65NfNvj/IeaS1sC4/BQSNOJH4jGmbO9vjlyithMTaSyQ6II0hk/LhBnp47xL BNkQ== 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 m126si2034093oig.177.2020.03.11.19.28.47; Wed, 11 Mar 2020 19:29: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 S2387655AbgCLC15 (ORCPT + 99 others); Wed, 11 Mar 2020 22:27:57 -0400 Received: from smtprelay0140.hostedemail.com ([216.40.44.140]:43998 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387608AbgCLC14 (ORCPT ); Wed, 11 Mar 2020 22:27:56 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id D282A75BA; Thu, 12 Mar 2020 02:27:55 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3870:3871:4321:5007:6119:7901:10004:10400:10848:11232:11473:11658:11914:12297:12438:12555:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21627:30054:30062:30064: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: jelly92_ae878a33e84c X-Filterd-Recvd-Size: 1807 Received: from XPS-9350.home (unknown [47.151.143.254]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Thu, 12 Mar 2020 02:27:54 +0000 (UTC) Message-ID: <2c4b42d1fb0bdb6604a72b2a10d49f9eae4b0ff4.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 19:26:12 -0700 In-Reply-To: <20200311191128.7896-1-scott.branden@broadcom.com> References: <20200311191128.7896-1-scott.branden@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 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? > Signed-off-by: Scott Branden > --- > scripts/checkpatch.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index a63380c6b0d2..c8b429dd6b51 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -3852,8 +3852,8 @@ sub process { > } > } > > -# no C99 // comments > - if ($line =~ m{//}) { > +# no C99 // comments except for SPDX-License-Identifier > + if ($line =~ m{//} && $rawline !~ /SPDX-License-Identifier:/) { > if (ERROR("C99_COMMENTS", > "do not use C99 // comments\n" . $herecurr) && > $fix) {