[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGG-pUQvHV+j1C9Z7-D4nq-uYmEgUDETy5V3V7T5LJu9cnXkMg@mail.gmail.com>
Date: Wed, 16 Dec 2015 08:21:22 -0300
From: "Geyslan G. Bem" <geyslan@...il.com>
To: Joe Perches <joe@...ches.com>
Cc: Robo Bot <apw@...onical.com>, LKML <linux-kernel@...r.kernel.org>,
Peter Senna Tschudin <peter.senna@...il.com>
Subject: Re: [BUG] checkpatch: unescaped left brace in regex is deprecated
2015-12-15 21:13 GMT-03:00 Joe Perches <joe@...ches.com>:
> On Tue, 2015-12-15 at 20:58 -0300, Geyslan G. Bem wrote:
>> 2015-12-10 8:24 GMT-03:00 Geyslan G. Bem <geyslan@...il.com>:
>> > Suggested-by: Peter Senna Tschudin <peter.senna@...il.com>
>> > Reported-by: Geyslan G. Bem <geyslan@...il.com>
>> >
>>
>> 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.
Ok, I'll try to trigger them before make the patch.
>
> $ 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*{/);
>
--
Regards,
Geyslan G. Bem
hackingbits.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists