Lines Matching refs:fixed
1231 my @fixed = ();
1309 @fixed = ();
2671 push(@fixed, $rawline) if ($fix);
3004 $fixed[$fixlinenr] =~ s/$sign_off/$suggested_signature/;
3012 $fixed[$fixlinenr] =
3020 $fixed[$fixlinenr] =
3029 $fixed[$fixlinenr] =
3049 $fixed[$fixlinenr] =~ s/\Q$email\E/$suggested_email/;
3060 $fixed[$fixlinenr] =~ s/\Q$email_address\E/$stripped_address/;
3095 $fixed[$fixlinenr] =~ s/\Q$email\E/$new_email/;
3114 $fixed[$fixlinenr] =~ s/\Q$email\E/$new_email/;
3188 $fixed[$fixlinenr] = "Fixes: $cid (\"$ctitle\")";
3247 $fixed[$fixlinenr] =~ s/^/ /;
3421 $fixed[$fixlinenr] =~ s/(^|[^A-Za-z@])($typo)($|[^A-Za-z@])/$1$typo_fix$3/;
3473 $fixed[$fixlinenr] =~ s/\b$first $second\b/$first/;
3485 $fixed[$fixlinenr] =~ s/(\+\s*\*\s*)$last_word /$1/;
3500 $fixed[$fixlinenr] =~ s/[\s\015]+$//;
3507 $fixed[$fixlinenr] =~ s/\s+$//;
3584 $fixed[$fixlinenr] =~ s/^(\+[A-Z]):\s*/$1:\t/;
3703 …$fixed[$fixlinenr] =~ s/SPDX-License-Identifier: .*/SPDX-License-Identifier: (GPL-2.0-only OR BSD-…
3819 $fixed[$fixlinenr] =~ s/^\+([ \t]+)/"\+" . tabify($1)/e;
3829 while ($fixed[$fixlinenr] =~
3831 while ($fixed[$fixlinenr] =~
3843 $fixed[$fixlinenr - 1] .= " $operator";
3844 $fixed[$fixlinenr] =~ s/\Q$operator\E\s*//;
3857 $fixed[$fixlinenr - 1] =~ s/\Q$line_end\E$/ $operator$line_end/;
3858 $fixed[$fixlinenr] =~ s/\Q$operator\E\s*//;
3870 $fixed[$fixlinenr] =~ s@(^\+\t+) +@$1 . "\t" x ($indent/$tabsize)@e;
3898 $fixed[$fixlinenr] =~
3917 $fixed[$fixlinenr] =~
4064 $fixed[$fixlinenr] =~ s/^\+([ \t]+)/"\+" . tabify($1)/e;
4437 $fixed[$fixlinenr] =~ s@\b$sign\s*\Q$pointer\E\s*$var\b@$decl$var@;
4504 my $line = $fixed[$fixlinenr];
4507 $fixed[$fixlinenr] =~ s@\/\/(.*)$@/\* $comment \*/@;
4565 $fixed[$fixlinenr] =~ s/(^.$Type\s*$Ident(?:\s+$Modifier)*)\s*=\s*$zero_initializer\s*;/$1;/;
4574 $fixed[$fixlinenr] =~ s/(\bstatic\s.*?)\s*=\s*$zero_initializer\s*;/$1;/;
4601 $fixed[$fixlinenr] =~ s/\b\Q$type\E\b/$new_type/;
4617 $fixed[$fixlinenr] =~ s/(^.\s*)const\b/${1}static const/;
4647 $fixed[$fixlinenr] =~ s/\bconst\s+static\b/static const/;
4648 $fixed[$fixlinenr] =~ s/\bstatic\s+($BasicType)\s+const\b/static const $1/;
4667 $fixed[$fixlinenr] =~ s/\Q$array_div\E/ARRAY_SIZE($array)/;
4677 $fixed[$fixlinenr] =~ s/(\b($Type)\s+($Ident))\s*\(\s*\)/$2 $3(void)/;
4714 $fixed[$fixlinenr] =~
4742 $fixed[$fixlinenr] =~
4821 $fixed[$fixlinenr] =~ s/\bENOTSUPP\b/EOPNOTSUPP/;
4870 $fixed[$fixlinenr] =~
4940 $fixed[$fixlinenr] =~
4957 $fixed[$fixlinenr] =~
4992 $fixed[$fixlinenr] =~
5302 if ($fix && $line_fixed && $fixed_line ne $fixed[$fixlinenr]) {
5303 $fixed[$fixlinenr] = $fixed_line;
5314 1 while $fixed[$fixlinenr] =~
5347 $fixed[$fixlinenr] =~ s/^(\+.*(?:do|else|\)))\{/$1 {/;
5365 $fixed[$fixlinenr] =~
5375 $fixed[$fixlinenr] =~
5383 $fixed[$fixlinenr] =~
5394 $fixed[$fixlinenr] =~
5404 $fixed[$fixlinenr] =~
5417 $fixed[$fixlinenr] =~ s/\(\s*\Q$var\E\s*\)/$var/;
5431 $fixed[$fixlinenr] =~ s/\Q$var\E/$var2/;
5471 $fixed[$fixlinenr] =~
5555 $fixed[$fixlinenr] =~ s/\(\s*\Q$const\E\s*$Compare\s*\Q$to\E\s*\)/($to $newcomp $const)/;
5573 $fixed[$fixlinenr] =~
5659 $fixed[$fixlinenr] =~ /^\+(\s*)((?:if|while|for)\s*$balanced_parens)\s*(.*)$/) {
5664 $fixed[$fixlinenr] = "\+$indent$test";
5798 $fixed[$fixlinenr] =~ s/\s+$//;
6240 $fixed[$fixlinenr] =~ s/^(\+.*\".*)\s+\\n/$1\\n/;
6253 $fixed[$fixlinenr] =~ s/\Q$extracted_string\E([A-Za-z0-9_])/$extracted_string $1/;
6254 $fixed[$fixlinenr] =~ s/([A-Za-z0-9_])\Q$extracted_string\E/$1 $extracted_string/;
6266 $fixed[$fixlinenr] =~ s/\Q$extracted_string\E\s*"/substr($extracted_string, 0, -1)/e;
6341 $fixed[$fixlinenr] =~ s/^\+$new_leading_tabs/\+$leading_tabs/;
6372 $fixed[$fixlinenr] =~ s/\s*$level\s*//;
6396 $fix && $fixed[$fixlinenr + $lineoff] =~ /^\+/) {
6399 $fixed[$fixlinenr + $lineoff] =~ s/\Q$pspec\E/$nspec/;
6421 $fixed[$fixlinenr] =~ s/\b\Q$val\E\s*(?:==|\!=)\s*NULL\b/$equal$val/;
6439 …$fixed[$fixlinenr] =~ s/(\bstatic\s+(?:const\s+)?)(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+…
6453 $fixed[$fixlinenr] =~
6464 my $lead = $fixed[$fixlinenr] =~
6469 $fixed[$fixlinenr] =~ s/(^\+\s*(?:static\s+))/$lead/;
6479 $fixed[$fixlinenr] =~ s/\s+__read_mostly\b//;
6492 $fixed[$fixlinenr] =~ s/\b$constant_func\b/$func/g;
6542 $fixed[$fixlinenr] =~
6645 $fixed[$fixlinenr] =~ s/\b(__inline__|__inline)\b/inline/;
6700 $fixed[$fixlinenr] =~ s/$remove//;
6701 $fixed[$fixlinenr] =~ s/\b__attribute__/$new __attribute__/;
6702 $fixed[$fixlinenr] =~ s/\}\Q$new\E/} $new/;
6703 $fixed[$fixlinenr] =~ s/ __attribute__\s*\(\s*\(\s*\)\s*\)//;
6738 $fixed[$fixlinenr] =~ s/\b$type\b/$kernel_type/;
6759 $fixed[$fixlinenr] =~ s/\Q$cast\E$const\b/$newconst$suffix/;
6774 …$fixed[$fixlinenr] =~ s/\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/"sizeof(" . trim($1) . ")"…
6792 $fixed[$fixlinenr] =~ s/\bseq_printf\b/seq_puts/;
6997 $fixed[$fixlinenr] =~ s/(.*)\bextern\b\s*(.*)/$1$2/;
7117 …$fixed[$fixlinenr] =~ s/\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*((?:kv|k)[mz]alloc)\s*\(\s*($Func…
7141 $fixed[$fixlinenr] =~ s/(\s*;\s*){2,}$/;/g;
7153 $fixed[$fixlinenr] =~ s/\(?\s*1\s*[ulUL]*\s*<<\s*(\d+|$Ident)\s*\)?/BIT${ull}($1)/;
7169 $fixed[$fixlinenr] = "\+#if IS_ENABLED($config)";
7211 $fixed[$fixlinenr] =~ s/\b__FUNCTION__\b/__func__/g;
7330 substr($fixed[$fixlinenr], $offset, 0) = '\\n';
7385 …$fixed[$fixlinenr] =~ s/\bDEVICE_ATTR\s*\(\s*$var\s*,\s*\Q$perms\E\s*,\s*$show\s*,\s*$store\s*\)/D…
7393 …$fixed[$fixlinenr] =~ s/\bDEVICE_ATTR\s*\(\s*$var\s*,\s*\Q$perms\E\s*,\s*$show\s*,\s*NULL\s*\)/DEV…
7401 …$fixed[$fixlinenr] =~ s/\bDEVICE_ATTR\s*\(\s*$var\s*,\s*\Q$perms\E\s*,\s*NULL\s*,\s*$store\s*\)/DE…
7472 $fixed[$fixlinenr] =~ s/\Q$oval\E/$octal/;
7496 $fixed[$fixlinenr] =~ s/\bMODULE_LICENSE\s*\(\s*"GPL v2"\s*\)/MODULE_LICENSE("GPL")/;
7594 ("@rawlines" ne "@fixed" ||
7601 @fixed = fix_inserted_deleted_lines(\@fixed, \@fixed_inserted, \@fixed_deleted);
7605 foreach my $fixed_line (@fixed) {