Received: by 10.213.65.68 with SMTP id h4csp10095imn; Tue, 3 Apr 2018 14:23:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx49GP6t4Aod5Z1lFP4WqyWyXkZiKc2SShTFMSnlDQJ8N3MtfGjyQ7w7Bwaq81OUEoIOnuTKg X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr15530079plq.207.1522790637806; Tue, 03 Apr 2018 14:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522790637; cv=none; d=google.com; s=arc-20160816; b=NL/CViJ1TM0tih0x+GhnFg0XHRPNiW8v/+Otrt4ABfl/xfwE6vLMUBoOask8es7Q4h paGEINRttsm4VmiPB6YNJ9YjHroyyNBlft8QYziKZWvV4eD/26vYaGQZQ3V2vLGHdYaq vsyDDh+LTNDAU7BODaIw5mKKl+5NEIQAIQ8Fpg+EhKdzSygXzfIlgSf0ivq1V8Uej1fy LOkqfD5mjzJcaslRE0NaVNljfvxQyOKYxMb93+N9+ypTuuu8zzO5AfeHL5oGL0bSAAPp +xlAspNp7jBaOSJPlZjngEHVRz/cxUMyEfODoTNiGs7Djazw/6CWaO5zq4+2MUq/Q2n9 joPg== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=2oZLo9sQMlrtINMlHF44QqD8WnOD9yubaTvXSQ+f0zU=; b=vh9HYjTrngEuzJXLUZvzESyd3DEiBv7WsLG37jHZLKoApAg6SolIRY6UJu3Z/4L+yj nkKwVvtJs7Hc52US3pv0abuSxfmgst/FiFwtRbJj+2zbvr9fIzZJG2PakfQ95qNlFBuS 5Pi5HOEKqyGavrX5+sLelcURhX7zJ0x/ogzEGB7fR80GfilWOdeNZjVlERLzL9M3pl5N zH2VB30zmGtwo93xiY7IAbutE6LpGdB3fnJ29VZh4Z5aOGZteeJzY3cCFSe76L7gEJO/ GxrUzKuRtenpcQrF9+idjXVeUty6PvKAgcmjQ+rUm7VcN46Kzvh/Mv6iaeaIm24EwOPe kDFg== 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 b3-v6si1473591plr.482.2018.04.03.14.23.44; Tue, 03 Apr 2018 14:23:57 -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 S1753543AbeDCVVD (ORCPT + 99 others); Tue, 3 Apr 2018 17:21:03 -0400 Received: from smtprelay0219.hostedemail.com ([216.40.44.219]:40739 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752246AbeDCVVC (ORCPT ); Tue, 3 Apr 2018 17:21:02 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 7CE8C100E86C1; Tue, 3 Apr 2018 21:21:01 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2197:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3866:3868:3870:3874:4321:5007:6119:10004:10400:10848:11232:11658:11914:12555:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21221:21451:21627:30054:30090:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:22,LUA_SUMMARY:none X-HE-Tag: blade92_4300c7dc68623 X-Filterd-Recvd-Size: 1960 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Tue, 3 Apr 2018 21:21:00 +0000 (UTC) Message-ID: <1522790459.11653.65.camel@perches.com> Subject: Re: [PATCH 1/1] checkpatch: allow space between colon and bracket From: Joe Perches To: Heinrich Schuchardt , Andy Whitcroft , Andrew Morton Cc: linux-kernel@vger.kernel.org Date: Tue, 03 Apr 2018 14:20:59 -0700 In-Reply-To: <20180403191655.23700-1-xypron.glpk@gmx.de> References: <20180403190214.23082-1-xypron.glpk@gmx.de> <20180403191655.23700-1-xypron.glpk@gmx.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 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 Tue, 2018-04-03 at 21:16 +0200, Heinrich Schuchardt wrote: > Allow a space between a colon and subsequent opening bracket. > This sequence may occur in inline assembler statements like > > asm( > "ldr %[out], [%[in]]\n\t" > : [out] "=r" (ret) > : [in] "r" (addr) > ); > > Signed-off-by: Heinrich Schuchardt I can't think of a valid c90 sequence that has a colon before a bracket so Acked-by: Joe Perches > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index d2464002bb40..2cbab86e6d4c 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -4083,7 +4083,7 @@ sub process { > my ($where, $prefix) = ($-[1], $1); > if ($prefix !~ /$Type\s+$/ && > ($where != 0 || $prefix !~ /^.\s+$/) && > - $prefix !~ /[{,]\s+$/) { > + $prefix !~ /[{,:]\s+$/) { > if (ERROR("BRACKET_SPACE", > "space prohibited before open square bracket '['\n" . $herecurr) && > $fix) {