Remove 's' modifier to avoid reporting the same warning several times.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -5132,7 +5132,7 @@ sub process { · 5131 unmodified lines | ||
| 5132 | 5132 | # Check for misused memsets |
| 5133 | 5133 | if ($^V && $^V ge 5.10.0 && |
| 5134 | 5134 | defined $stat && |
| 5135 | − $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/s) { | |
| 5135 | + $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/) { | |
| 5136 | 5136 | |
| 5137 | 5137 | my $ms_addr = $2; |
| 5138 | 5138 | my $ms_val = $7; |