Lines Matching +full:embedded +full:- +full:trace +full:- +full:extension
2 # SPDX-License-Identifier: GPL-2.0
7 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com>
8 # (c) 2010-2018 Joe Perches <joe@perches.com>
68 my $docsfile = "$D/../Documentation/dev-tools/checkpatch.rst";
71 my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE
73 my $git_command ='export LANGUAGE=en_US.UTF-8; git';
87 -q, --quiet quiet
88 -v, --verbose verbose mode
89 --no-tree run without a kernel tree
90 --no-signoff do not check for 'Signed-off-by' line
91 --patch treat FILE as patchfile (default)
92 --emacs emacs compile window format
93 --terse one line per report
94 --showfile emit diffed file position, not input file position
95 -g, --git treat FILE as a single commit or git revision range
103 <rev>-<count>
105 -f, --file treat FILE as regular source file
106 --subjective, --strict enable more subjective tests
107 --list-types list the possible message types
108 --types TYPE(,TYPE2...) show only these comma separated message types
109 --ignore TYPE(,TYPE2...) ignore various comma separated message types
110 --show-types show the specific message type in the output
111 --max-line-length=n set the maximum line length, (default $max_line_length)
113 requires --strict for use with --file
114 --min-conf-desc-length=n set the min description length, if shorter, warn
115 --tab-size=n set the number of spaces for tab (default $tabsize)
116 --root=PATH PATH to the kernel tree root
117 --no-summary suppress the per-file summary
118 --mailback only produce a report in case of warnings/errors
119 --summary-file include the filename in summary
120 --debug KEY=[0|1] turn on/off debugging of KEY, where KEY is one of
123 --test-only=WORD report only warnings/errors containing WORD
125 --fix EXPERIMENTAL - may create horrible results
126 If correctable single-line errors exist, create
127 "<inputfile>.EXPERIMENTAL-checkpatch-fixes"
130 --fix-inplace EXPERIMENTAL - may create horrible results
131 Is the same as --fix, but overwrites the input
133 --ignore-perl-version override checking of perl version. expect
135 --codespell Use the codespell dictionary for spelling/typos
137 --codespellfile Use this codespell dictionary
138 --typedefsfile Read additional types from this file
139 --color[=WHEN] Use colors 'always', 'never', or only when output
141 --kconfig-prefix=WORD use WORD as a prefix for Kconfig symbols (default
143 -h, --help, --version display this help and exit
145 When FILE is - read standard input.
220 if (-f $conf) {
286 # Prevent --color by itself from consuming other arguments
288 if ($_ eq "--color" || $_ eq "-color") {
289 $_ = "--color=$color";
308 'show-types!' => \$show_types,
309 'list-types!' => \$list_types,
310 'max-line-length=i' => \$max_line_length,
311 'min-conf-desc-length=i' => \$min_conf_desc_length,
312 'tab-size=i' => \$tabsize,
316 'summary-file!' => \$summary_file,
318 'fix-inplace!' => \$fix_inplace,
319 'ignore-perl-version!' => \$ignore_perl_version,
321 'test-only=s' => \$tst_only,
326 'no-color' => \$color, #keep old behaviors of -nocolor
327 'nocolor' => \$color, #keep old behaviors of -nocolor
328 'kconfig-prefix=s' => \${CONFIG_},
336 } elsif (!(-f $codespellfile)) {
349 my $codespell_dict = `python3 -c "$python_codespell_dict" 2> /dev/null`;
350 $codespellfile = $codespell_dict if (-f $codespell_dict);
354 # $help is 1 if either -h, --help or --version is passed as option - exitcode: 0
355 # $help is 2 if invalid option is passed - exitcode: 1
356 help($help - 1) if ($help);
358 die "$P: --git cannot be used with --file or --fix\n" if ($git && ($file || $fix));
359 die "$P: --verbose cannot be used with --terse\n" if ($verbose && $terse);
368 $color = (-t STDOUT);
388 #if no filenames are given, push '-' to read patch from stdin
390 push(@ARGV, '-');
393 # skip TAB size 1 to avoid additional checks on $tabsize - 1
404 $word =~ tr/[a-z]/[A-Z]/;
409 $hashRef->{$word}++;
448 die "$P: $root: --root does not point at a valid tree\n";
460 print "Must be run from the top-level dir. of a kernel tree\n";
468 [A-Za-z_][A-Za-z\d_]*
469 (?:\s*\#\#\s*[A-Za-z_][A-Za-z\d_]*)*
524 our $Member = qr{->$Ident|\.$Ident|\[[^]]*\]};
529 our $Hex = qr{(?i)0x[0-9a-f]+$Int_type?};
530 our $Int = qr{[0-9]+$Int_type?};
531 our $Octal = qr{0[0-7]+$Int_type?};
533 our $Float_hex = qr{(?i)0x[0-9a-f]+p-?[0-9]+[fl]?};
534 our $Float_dec = qr{(?i)(?:[0-9]+\.[0-9]*|[0-9]*\.[0-9]+)(?:e-?[0-9]+)?[fl]?};
535 our $Float_int = qr{(?i)[0-9]+e-?[0-9]+[fl]?};
538 our $Assignment = qr{\*\=|/=|%=|\+=|-=|<<=|>>=|&=|\^=|\|=|=};
539 our $Compare = qr{<=|>=|==|!=|<|(?<!-)>};
540 our $Arithmetic = qr{\+|-|\*|\/|%};
543 =>|->|<<|>>|<|>|!|~|
544 &&|\|\||,|\^|\+\+|--|&|\||$Arithmetic
559 [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte
560 | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs
561 | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte
562 | \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates
563 | \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3
564 | [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15
565 | \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16
569 [\x09\x0A\x0D\x20-\x7E] # ASCII
596 …(?:[a-z0-9]+_){1,2}(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|co…
600 MODULE_[A-Z_]+|
615 Signed-off-by:|
616 Co-developed-by:|
617 Acked-by:|
618 Tested-by:|
619 Reviewed-by:|
620 Reported-by:|
621 Suggested-by:|
643 [=-]*> |
644 <[=-]* |
674 for my $i (0 .. ($len-1)) {
686 $str1 =~ s/-//g;
687 $str2 =~ s/-//g;
698 } elsif (substr($str1, $i-1, 1) eq substr($str2, $j-1, 1)) {
699 $distance[$i][$j] = $distance[$i - 1][$j - 1];
701 my $dist1 = $distance[$i][$j - 1]; #insert distance
702 my $dist2 = $distance[$i - 1][$j]; # remove
703 my $dist3 = $distance[$i - 1][$j - 1]; #replace
714 'Signed-off-by:', 'Co-developed-by:', 'Acked-by:', 'Tested-by:',
715 'Reviewed-by:', 'Reported-by:', 'Suggested-by:'
725 \Qfreedesktop.org/archives/dri-devel\E |
728 \Qmail-archive.com\E |
729 \Qmailman.alsa-project.org/pipermail\E |
817 ["IIO_DEV_ATTR_[A-Z_]+", 1],
823 my $word_pattern = '\b[A-Z]?[a-z]{2,}\b';
829 $mode_perms_search .= $entry->[0];
863 0[0-7][0-7][2367]
900 return trim($string) if ($string =~ /^\s*0[0-7]{3,3}\s*$/);
911 last if ($lastpos > 0 && ($curpos - length($omatch) != $lastpos));
951 warn "No typos will be found - file '$spelling_file': $!\n";
968 my ($suspect, $fix) = split(/->/, $line);
974 warn "No codespell typos will be found - file '$codespellfile': $!\n";
993 print("$file: '$line' invalid - ignored\n");
1010 or warn "No structs that should be const will be found - file '$conststructsfile': $!\n";
1016 or warn "No additional types will be considered - file '$typedefsfile': $!\n";
1076 our $balanced_parens = qr/(\((?:[^\(\)]++|(?-1))*\))/;
1081 (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(|
1111 return if (!(-f $file));
1123 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
1124 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
1126 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
1128 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
1139 return 0 if (!$tree || !(-e "$root/scripts/get_maintainer.pl"));
1142 …s{$filename} = `perl $root/scripts/get_maintainer.pl --status --nom --nol --nogit --nogit-fallback…
1151 …return 1 if (!$tree || which("python3") eq "" || !(-x "$root/scripts/spdxcheck.py") || !(-e "$gitr…
1154 my $status = `cd "$root_path"; echo "$license" | scripts/spdxcheck.py -`;
1169 if (-e "$gitroot") {
1170 …my $git_last_include_commit = `${git_command} log --no-merges --pretty=format:"%h%n" -1 -- include…
1172 $camelcase_cache = ".checkpatch-camelcase.git.$git_last_include_commit";
1175 $files = `find $root/include -name "*.h"`;
1182 $camelcase_cache = ".checkpatch-camelcase.date.$last_mod_date";
1185 if ($camelcase_cache ne "" && -f $camelcase_cache) {
1197 if (-e "$gitroot") {
1198 $files = `${git_command} ls-files "include/*.h"`;
1207 unlink glob ".checkpatch-camelcase.*";
1220 return 0 if ((which("git") eq "") || !(-e "$gitroot"));
1222 my $output = `${git_command} ls-files -- $filename 2>/dev/null`;
1230 return ($id, $desc) if ((which("git") eq "") || !(-e "$gitroot"));
1232 my $output = `${git_command} log --no-color --format='%H %s' -1 $commit 2>&1`;
1243 # git rev-list --remotes | grep -i "^$1" |
1245 # git log --format='%H %s' -1 $line |
1246 # echo "commit $(cut -c 1-12,41-)"
1266 my $fixlinenr = -1;
1269 # For example, HEAD-3 means we need check 'HEAD, HEAD~1, HEAD~2'.
1270 die "$P: No git repository found\n" if ($git && !-e "$gitroot");
1276 if ($commit_expr =~ m/^(.*)-(\d+)$/) {
1277 $git_range = "-$2 $1";
1281 $git_range = "-1 $commit_expr";
1283 my $lines = `${git_command} log --no-color --no-merges --pretty=format:'%H %s' $git_range`;
1285 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1305 open($FILE, '-|', "git format-patch -M --stdout -1 $filename") ||
1306 die "$P: $filename: git format-patch failed - $!\n";
1308 open($FILE, '-|', "diff -u /dev/null $filename") ||
1309 die "$P: $filename: diff failed - $!\n";
1310 } elsif ($filename eq '-') {
1314 die "$P: $filename: open failed - $!\n";
1316 if ($filename eq '-') {
1326 $vname = qq("$1") if ($filename eq '-' && $_ =~ m/^Subject:\s+(.+)/i);
1331 print '-' x length($vname) . "\n";
1333 print '-' x length($vname) . "\n";
1344 $fixlinenr = -1;
1383 if (! -e $root . '/' . $check) {
1427 # "John D. (Doe)" - Do not extract
1441 if ($name =~ /[^\w \-]/i) { ##has "must quote" chars
1458 if ($name =~ /[^\w \-]/i) { ##has "must quote" chars
1500 if (-e "$path/$bin") {
1512 if (-e "$path/$conf") {
1667 return substr($rawline, $-[0], $+[0] - $-[0]);
1672 my $line = $linenr - 1;
1675 my $coff = $off - 1;
1689 @stack = (['', 0]) if ($#stack == -1);
1697 next if ($lines[$line] =~ /^-/);
1698 $remain--;
1725 ($type, $level) = @{$stack[$#stack - 1]};
1741 $coff = $off + length($1) - 1;
1744 #warn "[" . substr($blk, $soff, $coff - $soff + 1) . "]\n";
1752 $level--;
1766 $level--;
1778 $level--;
1789 $remain--;
1792 my $statement = substr($blk, $soff, $off - $soff + 1);
1793 my $condition = substr($blk, $soff, $coff - $soff + 1);
1801 $line, $remain + 1, $off - $loff + 1, $level);
1858 if (!($remain > 0 && $condition =~ /^\s*(?:\n[+-])?\s*(?:if|else|do)\b/s)) {
1868 last if (!($remain > 0 && $condition =~ /^(?:\s*\n[+-])*\s*(?:else|do)\b/s));
1879 my $start = $linenr - 1;
1888 next if ($rawlines[$line] =~ /^-/);
1889 $remain--;
1897 $level = $stack[$#stack - 1];
1905 $off--;
1910 $level--;
1959 my ($current_comment) = ($rawlines[$end_line - 1] =~ m@^\+.*(//.*$)@);
1961 ($current_comment) = ($rawlines[$end_line - 2] =~ m@^[\+ ].*(//.*$)@);
1967 ($current_comment) = ($rawlines[$end_line - 1] =~ m@.*(/\*.*\*/)\s*(?:\\\s*)?$@);
1975 my $line = $rawlines[$linenr - 1];
1999 ##print "LINE: $rawlines[$end_line - 1 ]\n";
2008 my $offset = $linenr - 1;
2014 next if (defined($line) && $line =~ /^-/);
2015 $cnt--;
2185 print "PAREN('$1') -> $type\n"
2241 } elsif ($cur =~ /^(-(?![->])|\+(?!\+)|\*|\&\&|\&)/o) {
2256 if ($1 ne '++' && $1 ne '--') {
2324 $type =~ tr/[a-z]/[A-Z]/;
2357 my @lines = split("\n", $output, -1);
2384 if ($$lineRef =~ /^\@\@ -\d+,\d+ \+(\d+),(\d+) \@\@/) {
2413 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
2415 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
2423 fixup_current_range(\$lines[$range_last_linenr], $delta_offset--, -1);
2504 if (-f "$root/$file") {
2509 if (! -f _) {
2515 substr($prefix, -length($file)) = '';
2560 my $max_spaces_before_tab = $source_indent - 1;
2582 return -1;
2590 $pos += length($1) - 1;
2593 } elsif (index($string, '(') == -1) {
2605 for my $i (0 .. (length($line) - 1)) {
2643 my $is_binding_patch = -1;
2646 my $has_patch_separator = 0; #Found a --- line
2655 my $last_git_commit_id_linenr = -1;
2658 my $last_coalesced_string_linenr = -1;
2666 # Trace the real file/line as we go.
2687 # Pre-scan the patch sanitizing the lines.
2688 # Pre-scan the patch looking for any __setup documentation.
2707 if ($1 =~ m@Documentation/admin-guide/kernel-parameters.txt$@) {
2712 if ($rawline =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@/) {
2713 $realline=$1-1;
2728 next if (defined $rawlines[$ln - 1] &&
2729 $rawlines[$ln - 1] =~ /^-/);
2730 $cnt--;
2731 #print "RAW<$rawlines[$ln - 1]>\n";
2732 last if (!defined $rawlines[$ln - 1]);
2733 if ($rawlines[$ln - 1] =~ m@(/\*|\*/)@ &&
2734 $rawlines[$ln - 1] !~ m@"[^"]*(?:/\*|\*/)[^"]*"@) {
2757 # simplify matching -- only bother with positive lines.
2763 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2769 #print "-->$line\n";
2780 $fixlinenr = -1;
2787 my $rawline = $rawlines[$linenr - 1];
2792 ($line =~ /^ mode change [0-7]+ => [0-7]+ \S+\s*$/ ||
2794 $line =~ /^diff --git a\/[\w\/\.\_\-]+ b\/\S+\s*$/))) {
2800 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@(.*)/) {
2804 $realline=$1-1;
2829 $realcnt-- if ($realcnt != 0);
2842 $realcnt--;
2852 if ($line =~ /^diff --git.*?(\S+)$/) {
2864 -e "$root/$p1_prefix") {
2866 "patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n");
2871 …"do not modify files in include/asm, change architecture specific files in include/asm-<architectu…
2902 $is_binding_patch = () = $realfile =~ m@^(?:Documentation/devicetree/|include/dt-bindings/)@;
2904 if (($last_binding_patch != -1) &&
2907 …udes should be a separate patch. See: Documentation/devicetree/bindings/submitting-patches.rst\n");
2930 "Missing commit description - Add an appropriate one\n");
2938 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2939 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2941 "Avoid using diff content in the commit message - patch(1) might not work\n" . $herecurr);
2956 if (decode("MIME-Header", $line) =~ /^From:\s*(.*)/) {
2962 $author = encode("utf8", $author) if ($line =~ /=\?utf-8\?/i);
2968 if ($line =~ /^\s*signed-off-by:\s*(.*)/i) {
3007 if ($line =~ /^---$/) {
3020 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
3031 "Non-standard signature: $sign_off\n" . $herecurr);
3034 "Non-standard signature: '$sign_off' - perhaps '$suggested_signature'?\n" . $herecurr) &&
3048 if ($sign_off =~ /-by:$/i && $sign_off ne $ucfirst_sign_off) {
3112 $cur_name =~ s/[a-zA-Z\s\-\"]+//g;
3162 # Check Co-developed-by: immediately followed by Signed-off-by: with same name and email
3163 if ($sign_off =~ /^co-developed-by:$/i) {
3166 … "Co-developed-by: should not be used to attribute nominal patch author '$author'\n" . $herecurr);
3170 "Co-developed-by: must be immediately followed by Signed-off-by:\n" . $herecurr);
3171 } elsif ($rawlines[$linenr] !~ /^signed-off-by:\s*(.*)/i) {
3173 …"Co-developed-by: must be immediately followed by Signed-off-by:\n" . $herecurr . $rawlines[$linen…
3176 …"Co-developed-by and Signed-off-by: name/email do not match\n" . $herecurr . $rawlines[$linenr] . …
3180 # check if Reported-by: is followed by a Closes: tag
3181 if ($sign_off =~ /^reported(?:|-and-tested)-by:$/i) {
3184 …"Reported-by: should be immediately followed by Closes: with a URL to the report\n" . $herecurr . …
3187 …"Reported-by: should be immediately followed by Closes: with a URL to the report\n" . $herecurr . …
3195 $line =~ /^\s*fixes:?\s*(?:commit\s*)?[0-9a-f]{5,}\b/i) {
3205 if ($line =~ /(\s*fixes:?)\s+([0-9a-f]{5,})\s+($balanced_parens)/i) {
3211 $tag_space = 0 if ($line =~ /^fixes:? [0-9a-f]{5,} ($balanced_parens)/i);
3213 $id_length = 0 if ($orig_commit =~ /^[0-9a-f]{12}$/i);
3214 $id_case = 0 if ($orig_commit !~ /[A-F]/);
3217 $title = substr($title, 1, -1);
3219 $title = substr($title, 1, -1);
3230 …"Please use correct Fixes: style 'Fixes: <12 chars of sha1> (\"<title line>\")' - ie: 'Fixes: $cid…
3244 # Check for Gerrit Change-Ids not in any patch context
3245 if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) {
3247 "Remove Gerrit Change-Id's before submitting upstream\n" . $herecurr) &&
3258 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/) ||
3259 $line =~ /^(?:\s+\w+:\s+[0-9a-fA-F]+){3,3}/ ||
3260 $line =~ /^\s*\#\d+\s*\[[0-9a-fA-F]+\]\s*\w+ at [0-9a-fA-F]+/) {
3268 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
3270 $line =~ /^\s*(?:[\w\.\-\+]*\/)++[\w\.\-\+]+:/ ||
3291 "Patch version information should be after the --- line\n" . $herecurr);
3320 # commit <SHA-1 hash length 12+ chars> ("Complete commit subject")
3323 # bare SHA-1 hash with minimum length of 5. It also avoids several types of
3324 # possible SHA-1 matches.
3329 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i &&
3330 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
3331 (($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
3332 … /\bcommit\s*$/i && defined($rawlines[$linenr]) && $rawlines[$linenr] =~ /^\s*[0-9a-f]{5,}\b/i)) ||
3333 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
3334 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
3335 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
3350 if ($line =~ /(?:\bcommit\s+[0-9a-f]{5,}|\bcommit\s*$)/i) {
3352 if ($input =~ /\bcommit\s+[0-9a-f]{5,}\s*($balanced_parens)/i) {
3356 $orig_desc = substr($orig_desc, 1, -1);
3358 $orig_desc = substr($orig_desc, 1, -1);
3370 if ($input =~ /\b(c)ommit\s+([0-9a-f]{5,})\b/i) {
3373 $short = 0 if ($input =~ /\bcommit\s+[0-9a-f]{12,40}/i);
3374 $long = 1 if ($input =~ /\bcommit\s+[0-9a-f]{41,}/i);
3375 $space = 0 if ($input =~ /\bcommit [0-9a-f]/i);
3376 $case = 0 if ($input =~ /\b[Cc]ommit\s+[0-9a-f]{5,40}[^A-F]/);
3377 } elsif ($input =~ /\b([0-9a-f]{12,40})\b/i) {
3386 $last_git_commit_id_linenr != $linenr - 1) {
3388 …it commit description style 'commit <12+ chars of sha1> (\"<title line>\")' - ie: '${init_char}omm…
3397 …"Use lore.kernel.org archive links when possible - see https://lore.kernel.org/lists.html\n" . $he…
3403 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
3404 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
3417 …"DT bindings should be in DT schema format. See: Documentation/devicetree/bindings/writing-schema.…
3421 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
3427 # UTF-8 regex found at http://www.w3.org/International/questions/qa-forms-utf-8.en.php
3437 "Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr);
3444 $rawline =~ /^(?:commit\b|from\b|[\w-]+:)/i)) {
3450 # Check if there is UTF-8 in a commit log when a mail header has explicitly
3453 $rawline =~ /^Content-Type:.+charset="(.+)".*$/ &&
3454 $1 !~ /utf-8/i) {
3461 "8-bit UTF-8 used in possible commit log\n" . $herecurr);
3481 while ($rawline =~ /(?:^|[^\w\-'`])($misspellings)(?:[^\w\-'`]|$)/gi) {
3484 my $ptr = substr($blank, 0, $-[1]) . "^" x length($typo);
3487 $typo_fix = ucfirst($typo_fix) if ($typo =~ /^[A-Z]/);
3488 $typo_fix = uc($typo_fix) if ($typo =~ /^[A-Z]+$/);
3492 "'$typo' may be misspelled - perhaps '$typo_fix'?\n" . $hereptr) &&
3494 $fixed[$fixlinenr] =~ s/(^|[^A-Za-z@])($typo)($|[^A-Za-z@])/$1$typo_fix$3/;
3500 if ($in_commit_log && $line =~ /(^fixes:|\bcommit)\s+([0-9a-f]{6,40})\b/i) {
3511 # avoid false positive from list command eg, '-rw-r--r-- 1 root root'
3513 $rawline !~ /[bcCdDlMnpPs\?-][rwxsStT-]{9}/) {
3519 my $start_pos = $-[1];
3532 $start_char = substr($rawline, $start_pos - 1, 1) if ($start_pos > ($in_commit_log ? 0 : 1));
3536 next if (index(" \t.,;?!", $end_char) == -1);
3539 if ($first =~ /\b[0-9a-f]{2,}\b/i) {
3564 # ignore non-hunk lines and lines being removed
3565 next if (!$hunk_line || $line =~ /^-/);
3613 next if ($f =~ /^-/);
3643 my $stat_real = get_stat_real($linenr, $ln - 1);
3652 if ($rawline =~ /^\+[A-Z]:/ &&
3653 $rawline !~ /^\+[A-Z]:\t\S/) {
3657 $fixed[$fixlinenr] =~ s/^(\+[A-Z]):\s*/$1:\t/;
3662 if ($rawline =~ /^\+[A-Z]:/ &&
3663 $prevrawline =~ /^[\+ ][A-Z]:/) {
3664 $rawline =~ /^\+([A-Z]):\s*(.*)/;
3667 $prevrawline =~ /^[\+ ]([A-Z]):\s*(.*)/;
3678 "Misordered MAINTAINERS entry - list '$cur:' before '$prev:'\n" . $hereprev);
3683 "Misordered MAINTAINERS entry - list file patterns in alphabetic order\n" . $hereprev);
3690 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
3693 'EXTRA_AFLAGS' => 'asflags-y',
3694 'EXTRA_CFLAGS' => 'ccflags-y',
3695 'EXTRA_CPPFLAGS' => 'cppflags-y',
3696 'EXTRA_LDFLAGS' => 'ldflags-y',
3700 … of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacem…
3708 my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g;
3711 my $vp_file = $dt_path . "vendor-prefixes.yaml";
3715 $compat2 =~ s/\,[a-zA-Z0-9]*\-/\,<\.\*>\-/;
3717 $compat3 =~ s/\,([a-z]*)[0-9]*\-/\,$1<\.\*>\-/;
3718 `grep -Erq "$compat|$compat2|$compat3" $dt_path`;
3721 "DT compatible string \"$compat\" appears un-documented -- check $dt_path\n" . $herecurr);
3724 next if $compat !~ /^([a-zA-Z0-9\-]+)\,/;
3726 `grep -Eq "\\"\\^\Q$vendor\E,\\.\\*\\":" $vp_file`;
3729 … "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr);
3752 $rawline =~ /SPDX-License-Identifier:/ &&
3759 $rawline !~ m@^\+\Q$comment\E SPDX-License-Identifier: @) {
3761 … "Missing or malformed SPDX-License-Identifier tag in line $checklicenseline\n" . $herecurr);
3762 } elsif ($rawline =~ /(SPDX-License-Identifier: .*)/) {
3769 $spdx_license !~ /GPL-2\.0(?:-only)? OR BSD-2-Clause/) {
3774 "DT binding documents should be licensed (GPL-2.0-only OR BSD-2-Clause)\n" . $herecurr) &&
3776 …$fixed[$fixlinenr] =~ s/SPDX-License-Identifier: .*/SPDX-License-Identifier: (GPL-2.0-only OR BSD-…
3779 if ($realfile =~ m@^include/dt-bindings/@ &&
3780 $spdx_license !~ /GPL-2\.0(?:-only)? OR \S+/) {
3782 "DT binding headers should be licensed (GPL-2.0-only OR .*)\n" . $herecurr);
3788 # check for embedded filenames
3797 # check for using SPDX-License-Identifier on the wrong line number
3799 $rawline =~ /\bSPDX-License-Identifier:/ &&
3800 substr($line, @-, @+ - @-) eq "$;" x (@+ - @-)) {
3802 "Misplaced SPDX-License-Identifier tag - use line $checklicenseline instead\n" . $herecurr);
3829 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3844 } elsif ($rawline =~ /^\+.*\b[a-z][\w\.\+\-]*:\/\/\S+/i) {
3851 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3856 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3880 $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) {
3882 … range of code via 'SYM_*_START/END' annotations; see Documentation/core-api/asm-annotations.rst\n…
3921 $fixed[$fixlinenr - 1] .= " $operator";
3932 # insert logical operator at last non-comment, non-whitepsace char on previous line
3934 my $line_end = substr($prevrawline, $-[0]);
3935 $fixed[$fixlinenr - 1] =~ s/\Q$line_end\E$/ $operator$line_end/;
3953 # check multi-line statement indentation matches previous line
4005 …$realline > 3) { # Do not warn about the initial copyright comment block after SPDX-License-Identi…
4061 $line =~ /^\+[a-z_]*init/ ||
4062 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
4076 $last_blank_line != ($linenr - 1)) {
4230 (!defined $lines[$realline_next - 1] ||
4231 substr($lines[$realline_next - 1], $off_next) =~ /^\s*$/)) {
4311 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
4318 "Too many leading tabs - consider code refactoring\n" . $herecurr);
4321 my $ctx_cnt = $realcnt - $#ctx - 1;
4328 defined $lines[$ctx_ln - 1] &&
4329 $lines[$ctx_ln - 1] =~ /^-/)) {
4331 $ctx_skip-- if (!defined $lines[$ctx_ln - 1] || $lines[$ctx_ln - 1] !~ /^-/);
4336 #print "pre<$pre_ctx>\nline<$line>\nctx<$ctx>\nnext<$lines[$ctx_ln - 1]>\n";
4338 if ($ctx !~ /{\s*/ && defined($lines[$ctx_ln - 1]) && $lines[$ctx_ln - 1] =~ /^\+\s*{/) {
4341 "$here\n$ctx\n$rawlines[$ctx_ln - 1]\n");
4345 defined $lines[$ctx_ln - 1])
4347 my ($nlength, $nindent) = line_stats($lines[$ctx_ln - 1]);
4351 "$here\n$ctx\n$rawlines[$ctx_ln - 1]\n");
4357 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|(?:do|else)\b)/ && $line !~ /…
4405 my $cond_ptr = -1;
4468 $prev_values = substr($curr_values, -1);
4476 if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {
4480 "Do not use self-assignments to avoid compiler warnings\n" . $herecurr);
4485 if ($prevline =~ /^\+.*$Lval\s*(?:\.|->)\s*$/ &&
4487 $prevline =~ /($Lval\s*(?:\.|->))\s*$/;
4493 "Avoid multiple line dereference - prefer '$ref'\n" . $hereprev);
4549 fix_delete_line($fixlinenr - 1, $prevrawline);
4595 #print "APW <$lines[$realline_next - 1]>\n";
4597 exists $lines[$realline_next - 1] &&
4599 ($lines[$realline_next - 1] =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
4606 if ($stat =~ /^(?:.\s*}\s*\n)?.([A-Z_]+)\s*\(\s*($Ident)/ &&
4619 #print "FOO A<$lines[$realline_next - 1]> stat<$stat> name<$name>\n";
4628 #print "FOO B <$lines[$linenr - 1]>\n";
4723 "Move const after static - use 'static const $1'\n" . $herecurr) &&
4730 # check for non-global char *foo[] = {"bar", ...} declarations.
4753 "Bad function definition - $1() should probably be $1(void)\n" . $herecurr) &&
4827 …e =~ /\b(?!AA_|BUILD_|DCCP_|IDA_|KVM_|RWLOCK_|snd_|SPIN_)(?:[a-zA-Z_]*_)?BUG(?:_ON)?(?:_[A-Z_]+)?\…
4831 …"Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery cod…
4847 if ($line =~ /\bprintk\s*\(\s*(?!KERN_[A-Z]+\b)/) {
4853 if ($line =~ /\b(printk(_once|_ratelimited)?)\s*\(\s*KERN_([A-Z]+)/) {
4869 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
4931 fix_delete_line($fixlinenr - 1, $prevrawline);
5024 # 1. with a type on the left -- int [] a;
5025 # 2. at the beginning of a line for slice initialisers -- [0...10] = 5,
5026 # 3. inside a curly brace -- = { [0...10] = 5 }
5028 my ($where, $prefix) = ($-[1], $1);
5044 my $ctx_before = substr($line, 0, $-[1]);
5054 # cpp #define statements have non-optional spaces, ie
5083 \+=|-=|\*=|\/=|%=|\^=|\|=|&=|
5084 =>|->|<<|>>|<|>|=|!|~|
5085 &&|\|\||,|\^|\+\+|--|&|\||\+|-|\*|\/|%|
5106 my $last_after = -1;
5185 # ->
5186 } elsif ($op eq '->') {
5228 # '*' as part of a type definition -- reported already.
5236 $opv eq '*U' || $opv eq '-U' ||
5238 if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) {
5261 # unary ++ and unary -- are allowed no space on one side.
5262 } elsif ($op eq '++' or $op eq '--') {
5292 $op eq '+' or $op eq '-' or
5387 # check for whitespace before a non-naked semicolon
5488 # ie: &(foo->bar) should be &foo->bar and *(foo->bar) should be *foo->bar
5500 # ie: (foo->bar)(); should be foo->bar();
5501 # but not "if (foo->bar) (" to avoid some false positives
5514 # when !drivers/staging or command-line uses --strict
5519 my $test = substr($2, 1, -1);
5543 if ($sline =~ /^.\s+[A-Za-z_][A-Za-z\d_]*:(?!\s*\d+)/ &&
5544 $sline !~ /^. [A-Za-z\d_][A-Za-z\d_]*:/ &&
5583 # at end-of-function, with the previous line a single leading tab, then return;
5588 $lines[$linenr - 3] =~ /^[ +]/ &&
5589 $lines[$linenr - 3] !~ /^[ +]\s*$Ident\s*:/) {
5594 # if statements using unnecessary parentheses - ie: if ((foo == bar))
5602 $msg = " - maybe == should be = ?" if ($comp eq "==");
5613 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
5620 $to !~ /^(?:Constant|[A-Z_][A-Z0-9_]*)$/ &&
5638 if ($sline =~ /\breturn(?:\s*\(+\s*|\s+)(E[A-Z]+)(?:\s*\)+\s*|\s*)[;:,]/) {
5642 "return of an errno should typically be negative (ie: return -$1)\n" . $herecurr);
5656 # Check for illegal assignment in if conditional -- and check for trailing
5671 ($stat_next =~ /^((?:\s*\n[+-])*\s*)/s);
5673 statement_rawlines($whitespace) - 1;
5753 \s*0[xX][0-9]+\s*
5757 \s*0[xX][0-9]+\s*
5798 fix_delete_line($fixlinenr - 1, $prevrawline);
5824 fix_delete_line($fixlinenr - 1, $prevrawline);
5842 $var =~ /[A-Z][a-z]|[a-z][A-Z]/ &&
5844 $var !~ /^(?:[A-Z]+_){1,5}[A-Z]{1,3}[a-z]/ &&
5846 $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ &&
5851 $var !~ /^(?:[a-z0-9_]*|[A-Z0-9_]*)?_?[a-z][A-Z](?:_[a-z0-9_]+|_[A-Z0-9_]+)?$/ &&
5853 $var !~ /^(?:[a-z_]*?)_?(?:[KMGT]iB|[KMGT]?Hz)(?:_[a-z_]+)?$/) {
5856 next if ($word !~ /[A-Z][a-z]|[a-z][A-Z]/);
5887 if (-f "$root/$checkfile" &&
5891 my $asminclude = `grep -Ec "#include\\s+<asm/$file>" $root/$checkfile`;
5904 # multi-statement macros should be enclosed in a do while loop, grab the
5919 #print "LINE<$lines[$ln-1]> len<" . length($lines[$ln-1]) . "\n";
5930 $define_args = substr($define_args, 1, length($define_args) - 2);
5977 $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(),
5978 $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo();
5979 …$dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo // foo->bar // f…
5988 $dstat !~ /^for\s*$Constant\s+(?:$Ident|-?$Constant)$/ && # for (...) bar()
5995 …"Macros starting with if should be enclosed by a do - while loop to avoid possible if/else logic d…
5998 … "Macros with multiple statements should be enclosed in a do - while loop\n" . "$herectx");
6006 # Make $define_stmt single line, comment-free, etc
6034 "Macro argument reuse '$arg' - possible side-effects?\n" . "$herectx");
6071 # single-statement macros do not need to be enclosed in do while (0) loop,
6125 my $ln = $linenr - 1;
6130 my ($whitespace) = ($cond =~ /^((?:\s*\n[+-])*\s*)/s);
6131 my $offset = statement_rawlines($whitespace) - 1;
6140 $ln += statement_rawlines($block) - 1;
6177 if (!defined $suppress_ifbraces{$linenr - 1} &&
6181 # Check the pre-context.
6182 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
6188 ctx_statement_full($linenr, $realcnt, $-[0]);
6208 # Check the post-context.
6215 #print "APW: ALLOWED: chunk-1 block<$block>\n";
6239 fix_delete_line($fixlinenr - 1, $prevrawline);
6254 …"Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst\n" . …
6257 # Check for user-visible strings broken across lines, which breaks the ability
6263 $prevrawline !~ /(?:\\(?:[ntr]|[0-7]{1,3}|x[0-9a-fA-F]{1,2})|;\s*|\{\s*)"\s*$/) {
6268 $last_coalesced_string_linenr != $linenr - 1) {
6275 fix_delete_line($fixlinenr - 1, $prevrawline);
6280 fix_insert_line($fixlinenr - 1, $fixedline);
6296 # check for an embedded function name in a string when the function is known
6297 # This does not work very well for -f --file checking as it depends on patch
6298 # context providing the function name or a single line form for in-file
6313 "Unnecessary ftrace-like logging - prefer using ftrace\n" . $herecurr) &&
6330 if ($line =~ /$String[A-Z_]/ ||
6331 ($line =~ /([A-Za-z0-9_]+)$String/ && $1 !~ /^[Lu]$/)) {
6336 my $extracted_string = substr($rawline, $-[0], $+[0] - $-[0]);
6337 $fixed[$fixlinenr] =~ s/\Q$extracted_string\E([A-Za-z0-9_])/$extracted_string $1/;
6338 $fixed[$fixlinenr] =~ s/([A-Za-z0-9_])\Q$extracted_string\E/$1 $extracted_string/;
6349 my $extracted_string = substr($rawline, $-[0], $+[0] - $-[0]);
6350 $fixed[$fixlinenr] =~ s/\Q$extracted_string\E\s*"/substr($extracted_string, 0, -1)/e;
6355 # check for non-standard and hex prefixed decimal printf formats
6359 my $string = substr($rawline, $-[1], $+[1] - $-[1]);
6364 "\%L$1 is non-standard C, use %ll$1\n" . $herecurr);
6370 "%Z$1 is non-standard C, use %z$1\n" . $herecurr);
6410 if ($lines[$linenr - 2] =~ /^\+(\t*)if\s*\(\s*$tested\s*\)\s*$/) {
6415 if ($lines[$linenr - 1] =~ /^\+(\t+)$func\s*\(\s*$tested\s*\)\s*;\s*$/) {
6424 fix_delete_line($fixlinenr - 1, $prevrawline);
6437 my $testline = $lines[$linenr - 3];
6439 my ($s, $c) = ctx_statement_block($linenr - 3, $realcnt, 0);
6451 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
6474 while ($stat_real =~ /[^\"%]*(%[\#\d\.\*\-]*(h+)[idux])/g) {
6477 my $lineoff = substr($stat_real, 0, $-[1]) =~ tr@\n@@;
6493 … "Possible precedence defect with mask then right shift - may need parentheses\n" . $herecurr);
6557 # check for __read_mostly with const non-pointer (should just be const)
6586 … "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.rst\n" . $herecurr);
6590 "long udelay - prefer mdelay; see arch/arm/include/asm/delay.h\n" . $herecurr);
6598 …"msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst\n" . $herecurr);
6671 if ($realfile !~ m@^include/asm-generic/@ &&
6676 "__smp memory barriers shouldn't be used outside barrier.h and asm-generic\n" . $herecurr);
6696 … m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@include/asm-@) {
6841 …"Unnecessary typecast of c90 int constant - '$cast$const' could be '$const$suffix'\n" . $herecurr)…
6881 # check for vsprintf extension %p<foo> misuses
6892 my $extension;
6895 my $fmt = get_quoted_string($lines[$count - 1], raw_line($count, 0));
6900 $extension = $2;
6902 if ($extension !~ /[4SsBKRraEehMmIiUDdgVCbGNOxtf]/ ||
6903 ($extension eq "f" &&
6905 ($extension eq "4" &&
6910 if ($extension eq "x" && !defined($stat_real)) {
6924 $use = " - use %pS instead";
6927 $use = " - '%pA' is only intended to be used from Rust code";
6932 "$ext_type vsprintf pointer extension '$bad_specifier'$use\n" . "$here\n$stat_real\n");
7000 "Prefer strscpy over strcpy - see: https://github.com/KSPP/linux/issues/88\n" . $herecurr);
7006 "Prefer strscpy over strlcpy - see: https://github.com/KSPP/linux/issues/89\n" . $herecurr);
7012 …"Prefer strscpy, strscpy_pad, or __nonstring over strncpy - see: https://github.com/KSPP/linux/iss…
7066 …"usleep_range should not use min == max args; see Documentation/timers/timers-howto.rst\n" . "$her…
7070 …"usleep_range args reversed, use min then max; see Documentation/timers/timers-howto.rst\n" . "$he…
7149 "found a file-scoped extern type:$st_type name:$st_name in .c file\n"
7203 …"__setup appears un-documented -- check Documentation/admin-guide/kernel-parameters.txt\n" . $here…
7210 … "unnecessary cast may hide bugs, see http://c-faq.com/malloc/mallocnocast.html\n" . $herecurr);
7239 !($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*$/)) {
7294 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(${CONFIG_}[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:…
7307 'lint -fallthrough[ \t]*',
7308 'intentional(?:ly)?[ \t]*fall(?:(?:s | |-)[Tt]|t)hr(?:ough|u|ew)',
7309 '(?:else,?\s*)?FALL(?:S | |-)?THR(?:OUGH|U|EW)[ \t.!]*(?:-[^\n\r]*)?',
7310 'Fall(?:(?:s | |-)[Tt]|t)hr(?:ough|u|ew)[ \t.!]*(?:-[^\n\r]*)?',
7311 'fall(?:s | |-)?thr(?:ough|u|ew)[ \t.!]*(?:-[^\n\r]*)?',
7348 "Use of the '$1' macro makes the build non-deterministic\n" . $herecurr);
7354 "Using yield() is generally wrong. See yield() kernel-doc (sched/core.c)\n" . $herecurr);
7437 …"usage of NR_CPUS is often wrong - consider using cpu_possible(), num_possible_cpus(), for_each_po…
7443 … "#define of '$1' is wrong - use Kconfig variables or standard guards instead\n" . $herecurr);
7455 substr($rawline, $-[6], $+[6] - $-[6]) !~ /\\n"$/) {
7456 my $offset = $+[6] - 1;
7468 …"Use C99 flexible arrays - see https://docs.kernel.org/process/deprecated.html#zero-length-and-one…
7470 $fixed[$fixlinenr - 1] =~ s/\[\s*0\s*\]/[]/;
7491 # Complain about RCU Tasks Trace used outside of BPF (and of course, RCU).
7511 "use of RCU tasks trace is incorrect outside BPF or core RCU code\n" . $herecurr);
7522 "lockdep_no_validate class is reserved for device->mutex.\n" . $herecurr);
7537 …E_ATTR\s*\(\s*(\w+)\s*,\s*\(?\s*(\s*(?:${multi_mode_perms_string_search}|0[0-7]{3,3})\s*)\s*\)?\s*…
7599 my $func = $entry->[0];
7600 my $arg_pos = $entry->[1];
7608 $arg_pos--;
7658 …"Prefer \"GPL\" over \"GPL v2\" - see commit bf7fbeeae6db (\"module: Cure the MODULE_LICENSE \"GPL…
7674 if ($#rawlines == -1) {
7684 # This is not a patch, and we are in 'no-patch' mode so
7690 if (!$is_patch && $filename !~ /cover-letter\.patch$/) {
7692 "Does not appear to be a unified-diff format patch\n");
7697 "Missing Signed-off-by: line(s)\n");
7700 # 0 -> missing sign off
7701 # 1 -> sign off identical
7702 # 2 -> names and addresses match, comments mismatch
7703 # 3 -> addresses match, names different
7704 # 4 -> names match, addresses different
7705 # 5 -> names match, addresses excluding subaddress details (refer RFC 5233) match
7707 my $sob_msg = "'From: $author' != 'Signed-off-by: $author_sob'";
7711 "Missing Signed-off-by: line by nominal patch author '$author'\n");
7714 "From:/Signed-off-by: email comments mismatch: $sob_msg\n");
7717 "From:/Signed-off-by: email name mismatch: $sob_msg\n");
7720 "From:/Signed-off-by: email address mismatch: $sob_msg\n");
7723 "From:/Signed-off-by: email subaddress mismatch: $sob_msg\n");
7742 mechanically convert to the typical style using --fix or --fix-inplace.
7761 $newfile .= ".EXPERIMENTAL-checkpatch-fixes" if (!$fix_inplace);
7785 Wrote EXPERIMENTAL --fix correction(s) to '$newfile'