There is an unescaped left brace in a regex in OPEN_BRACE check. This throws a runtime error when checkpatch is run with --fix flag and the OPEN_BRACE check is executed. Fix it by escaping the left brace.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -4505,7 +4505,7 @@ sub process { · 4504 unmodified lines | ||
| 4505 | 4505 | $fix) { |
| 4506 | 4506 | fix_delete_line($fixlinenr, $rawline); |
| 4507 | 4507 | my $fixed_line = $rawline; |
| 4508 | − $fixed_line =~ /(^..*$Type\s*$Ident\(.*\)\s*){(.*)$/; | |
| 4508 | + $fixed_line =~ /(^..*$Type\s*$Ident\(.*\)\s*)\{(.*)$/; | |
| 4509 | 4509 | my $line1 = $1; |
| 4510 | 4510 | my $line2 = $2; |
| 4511 | 4511 | fix_insert_line($fixlinenr, ltrim($line1)); |