Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754497AbbLPANg (ORCPT ); Tue, 15 Dec 2015 19:13:36 -0500 Received: from smtprelay0194.hostedemail.com ([216.40.44.194]:39410 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754001AbbLPANf (ORCPT ); Tue, 15 Dec 2015 19:13:35 -0500 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:1461:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2197:2199:2393:2559:2562:2691:2828:3138:3139:3140:3141:3142:3352:3622:3866:3867:3868:3872:3873:3874:4321:5007:6117:6261:7514:10004:10400:10848:11232:11658:11914:12043:12517:12519:12740:13069:13311:13357:13894:14659:21080:21221:30054:30083:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: song61_76746e10de237 X-Filterd-Recvd-Size: 2994 Message-ID: <1450224812.4142.39.camel@perches.com> Subject: Re: [BUG] checkpatch: unescaped left brace in regex is deprecated From: Joe Perches To: "Geyslan G. Bem" Cc: Robo Bot , LKML , Peter Senna Tschudin Date: Tue, 15 Dec 2015 16:13:32 -0800 In-Reply-To: References: <1449529586.7162.10.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.2-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1979 Lines: 39 On Tue, 2015-12-15 at 20:58 -0300, Geyslan G. Bem wrote: > 2015-12-10 8:24 GMT-03:00 Geyslan G. Bem : > > Suggested-by: Peter Senna Tschudin > > Reported-by: Geyslan G. Bem > > > > Joe, do you applied this patch? If not, would I send it? You can resend, but I believe there are a few more instances of this that might need fixing too. I don't have perl 5.22 so it's difficult for me to test. Here's a grep with some possible false positives and maybe missing some too. $ git grep -n "=[\!~].*{" scripts/checkpatch.pl|grep -vw qr|grep -vP '{$|{\s*#|\${|\\{|{[\d$]' scripts/checkpatch.pl:1143: $remainder =~ /^(else)(?:\s|{)/ && scripts/checkpatch.pl:1233: $stmt =~ s/^\s*{//; scripts/checkpatch.pl:2458: if ($file =~ m{^(.*?)(?::\d+)+:?$} && scripts/checkpatch.pl:2802: if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ && scripts/checkpatch.pl:3015: $s =~ s/{.*$//s; scripts/checkpatch.pl:3168: $s =~ s/^\s*{//; scripts/checkpatch.pl:3274: if ($line =~ /^.\s*{/ && scripts/checkpatch.pl:3282: $fixedline =~ s/\s*=\s*$/ = {/; scripts/checkpatch.pl:3285: $fixedline =~ s/^(.\s*){\s*/$1/; scripts/checkpatch.pl:3606: if (($line=~/$Type\s*$Ident\(.*\).*\s*{/) and scripts/checkpatch.pl:3613: $fixed_line =~ /(^..*$Type\s*$Ident\(.*\)\s*){(.*)$/; scripts/checkpatch.pl:3625: if ($line =~ /^.\s*{/ && scripts/checkpatch.pl:3635: $fixedline =~ s/^(.\s*){\s*/$1\t/; scripts/checkpatch.pl:4104:##? if ($line =~ /^.\s*$Type\s+$Ident(?:\s*=[^,{]*)?\s*,\s*$Ident.*/ && scripts/checkpatch.pl:4124: $fixed[$fixlinenr] =~ s/^(\+.*(?:do|\))){/$1 {/; scripts/checkpatch.pl:4734: $seen++ if ($block =~ /^\s*{/); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/