Lines Matching refs:line
224 my $line = $_;
226 $line =~ s/\s*\n?$//g;
227 $line =~ s/^\s*//g;
228 $line =~ s/\s+/ /g;
230 next if ($line =~ m/^\s*#/);
231 next if ($line =~ m/^\s*$/);
233 my @words = split(" ", $line);
253 my $line = $_;
254 $line =~ s/\s+$//;
256 if ($line =~ /^\s*\*\*(.+)\*\*$/) {
264 if ($line =~ /^(?:\s{4,}|$)/) {
265 $line =~ s/^\s{4}//;
266 $desc .= $line;
905 my $line = $_;
907 $line =~ s/\s*\n?$//g;
908 $line =~ s/^\s*//g;
910 next if ($line =~ m/^\s*#/);
911 next if ($line =~ m/^\s*$/);
913 my ($suspect, $fix) = split(/\|\|/, $line);
925 my $line = $_;
927 $line =~ s/\s*\n?$//g;
928 $line =~ s/^\s*//g;
930 next if ($line =~ m/^\s*#/);
931 next if ($line =~ m/^\s*$/);
932 next if ($line =~ m/, disabled/i);
934 $line =~ s/,.*$//;
936 my ($suspect, $fix) = split(/->/, $line);
953 my $line = $_;
955 $line =~ s/\s*\n?$//g;
956 $line =~ s/^\s*//g;
958 next if ($line =~ m/^\s*#/);
959 next if ($line =~ m/^\s*$/);
960 if ($line =~ /\s/) {
961 print("$file: '$line' invalid - ignored\n");
966 $$wordsRef .= $line;
1090 foreach my $line (@lines) {
1091 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
1092 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
1094 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
1096 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
1252 foreach my $line (split(/\n/, $lines)) {
1253 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1514 my ($line) = @_;
1517 $line =~ s/^.//;
1518 $line = expand_tabs($line);
1521 my ($white) = ($line =~ /^(\s*)/);
1523 return (length($line), length($white));
1538 my ($line) = @_;
1548 $res = substr($line, 0, 1);
1550 for ($off = 1; $off < length($line); $off++) {
1551 $c = substr($line, $off, 1);
1555 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
1562 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
1568 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1631 my ($line, $rawline) = @_;
1633 return "" if (!defined($line) || !defined($rawline));
1634 return "" if ($line !~ m/($String)/g);
1640 my $line = $linenr - 1;
1663 for (; $remain > 0; $line++) {
1664 last if (!defined $lines[$line]);
1665 next if ($lines[$line] =~ /^-/);
1668 $blk .= $lines[$line] . "\n";
1670 $line++;
1756 $line++;
1769 $line, $remain + 1, $off - $loff + 1, $level);
1846 my $line;
1855 for ($line = $start; $remain > 0; $line++) {
1856 next if ($rawlines[$line] =~ /^-/);
1859 $blk .= $rawlines[$line];
1862 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1864 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1866 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1870 foreach my $c (split(//, $lines[$line])) {
1886 push(@res, $rawlines[$line]);
1943 my $line = $rawlines[$linenr - 1];
1945 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1948 if ($line =~ m@/\*@) {
1954 $current_comment .= $line . "\n" if ($in_comment);
1955 if ($line =~ m@\*/@) {
1979 my $line;
1981 $line = $rawlines[$offset++];
1982 next if (defined($line) && $line =~ /^-/);
1986 return $line;
2241 my ($possible, $line) = @_;
2261 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
2272 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
2278 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
2283 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
2380 my $line = $old_line; #don't modify the array
2381 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
2383 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
2385 fixup_current_range(\$line, $delta_offset, 0);
2402 push(@lines, $line);
2413 my ($linenr, $line) = @_;
2417 LINE => $line,
2423 my ($linenr, $line) = @_;
2427 LINE => $line,
2540 my ($line) = @_;
2544 my $opens = $line =~ tr/\(/\(/;
2545 my $closes = $line =~ tr/\)/\)/;
2553 my $len = length($line);
2556 my $string = substr($line, $pos);
2559 } elsif (substr($line, $pos, 1) eq '(') {
2566 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2570 my ($line, $rawline) = @_;
2573 for my $i (0 .. (length($line) - 1)) {
2574 if (substr($line, $i, 1) eq "$;") {
2666 my $line;
2669 $line = $rawline;
2726 $line = sanitise_line($rawline);
2728 push(@lines, $line);
2731 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2739 if ($setup_docs && $line =~ /^\+/) {
2740 push(@setup_docs, $line);
2749 foreach my $line (@lines) {
2752 my $sline = $line; #copy of $line
2756 my $raw_comment = get_raw_comment($line, $rawline);
2760 ($line =~ /^ mode change [0-7]+ => [0-7]+ \S+\s*$/ ||
2761 ($line =~ /^rename (?:from|to) \S+\s*$/ ||
2762 $line =~ /^diff --git a\/[\w\/\.\_\-]+ b\/\S+\s*$/))) {
2768 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@(.*)/) {
2795 } elsif ($line =~ /^( |\+|$)/) {
2803 ($prevline, $stashline) = ($stashline, $line);
2820 if ($line =~ /^diff --git.*?(\S+)$/) {
2825 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2893 if ($line !~ /^\s*$/) {
2904 (($line =~ m@^\s+diff\b.*a/([\w/]+)@ &&
2905 $line =~ m@^\s+diff\b.*a/[\w/]+\s+b/$1\b@) ||
2906 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2907 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2914 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2924 if (decode("MIME-Header", $line) =~ /^From:\s*(.*)/) {
2930 $author = encode("utf8", $author) if ($line =~ /=\?utf-8\?/i);
2936 if ($line =~ /^\s*signed-off-by:\s*(.*)/i) {
2975 if ($line =~ /^---$/) {
2982 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
2988 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
3120 my $sig_nospace = $line;
3151 $line =~ /^\s*fixes:?\s*(?:commit\s*)?[0-9a-f]{5,}\b/i) {
3161 if ($line =~ /(\s*fixes:?)\s+([0-9a-f]{5,})\s+($balanced_parens)/i) {
3167 $tag_space = 0 if ($line =~ /^fixes:? [0-9a-f]{5,} ($balanced_parens)/i);
3195 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
3201 if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) {
3211 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
3212 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
3214 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/) ||
3215 $line =~ /^(?:\s+\w+:\s+[0-9a-fA-F]+){3,3}/ ||
3216 $line =~ /^\s*\#\d+\s*\[[0-9a-fA-F]+\]\s*\w+ at [0-9a-fA-F]+/) {
3223 length($line) > 75 &&
3224 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
3226 $line =~ /^\s*(?:[\w\.\-\+]*\/)++[\w\.\-\+]+:/ ||
3228 $line =~ /^\s*(?:Fixes:|Link:|$signature_tags)/i ||
3238 $line =~ /^\s*$/) {
3243 if ($in_commit_log && $line =~ /^#/) {
3262 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i &&
3263 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
3264 (($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
3265 …($line =~ /\bcommit\s*$/i && defined($rawlines[$linenr]) && $rawlines[$linenr] =~ /^\s*[0-9a-f]{5,…
3266 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
3267 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
3268 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
3282 my $input = $line;
3283 if ($line =~ /(?:\bcommit\s+[0-9a-f]{5,}|\bcommit\s*$)/i) {
3324 $last_git_commit_id_linenr = $linenr if ($line =~ /\bcommit\s*$/i);
3329 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
3330 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
3331 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
3341 ($line =~ /^new file mode\s*\d+\s*$/) &&
3348 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
3355 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
3393 while ($line =~ m{(?:^|\s)(/\S*)}g) {
3407 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
3427 if ($in_commit_log && $line =~ /(^fixes:|\bcommit)\s+([0-9a-f]{6,40})\b/i) {
3492 next if (!$hunk_line || $line =~ /^-/);
3495 if ($line =~ /^\+.*\015/) {
3532 $line =~ /^\+\s*(?:config|menuconfig|choice)\b/) {
3617 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
3632 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
3633 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
3722 substr($line, @-, @+ - @-) eq "$;" x (@+ - @-)) {
3743 if ($line =~ /^\+/ && $length > $max_line_length) {
3750 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
3751 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3756 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
3757 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
3761 } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
3762 $line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
3772 } elsif ($line =~ /($;[\s$;]*)$/ &&
3773 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3778 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3792 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
3802 $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) {
3884 $line =~ /^(\+| )([ \t]*)/;
3897 $fix && $line =~ /^\+/) {
3912 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
3953 $line =~ /^\+[ \t]*$;/ && #leading comment
3978 $line =~ /^\+/ &&
3979 !($line =~ /^\+\s*$/ ||
3980 $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ ||
3981 $line =~ /^\+\s*MODULE_/i ||
3982 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
3983 $line =~ /^\+[a-z_]*init/ ||
3984 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
3985 $line =~ /^\+\s*DECLARE/ ||
3986 $line =~ /^\+\s*builtin_[\w_]*driver/ ||
3987 $line =~ /^\+\s*__setup/)) {
3997 $line =~ /^\+\s*$/ &&
4059 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
4072 if ($line =~ /^\+.*([\[\(])\s*$/) {
4123 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
4210 if ($line=~/\bswitch\s*\(.*\)/) {
4233 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
4238 if ($line =~ /^\+\t{6,}/) {
4279 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|(?:do|else)\b)/ && $line !~ /…
4380 my $opline = $line; $opline =~ s/^./ /;
4393 next if ($line =~ /^[^\+]/);
4398 if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {
4400 …if ($line =~ /^\+\s*(?:$Declare)?$var\s*=\s*(?:$var|\*\s*\(?\s*&\s*\(?\s*$var\s*\)?\s*\)?)\s*[;,]/…
4408 $line =~ /^\+\s*(?!\#\s*(?!define\s+|if))\s*$Lval/) {
4411 $line =~ /^.\s*($Lval)/;
4419 while ($line =~ m{\b($Declare)\s*(?!char\b|short\b|int\b|long\b)\s*($Ident)?\s*[=,;\[\)\(]}g) {
4444 if ($line =~ /^.\s*$Declare\s*$/) {
4447 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
4455 if ($line =~ /^.\s*$Modifier\s*$/) {
4458 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
4466 if ($line =~ /^.\s*{/ &&
4470 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4476 $fixedline = $line;
4500 if ($line =~ m{//}) {
4504 my $line = $fixed[$fixlinenr];
4505 if ($line =~ /\/\/(.*)$/) {
4512 $line =~ s@//.*@@;
4549 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
4560 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/ &&
4569 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
4606 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
4613 …if ($line =~ /^\+\s*const\s+(char|unsigned\s+char|_*u8|(?:[us]_)?int8_t)\s+\w+\s*\[\s*(?:\w+\s*)?\…
4622 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
4653 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
4660 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
4662 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
4673 if ($line =~ /(\b$Type\s*$Ident)\s*\(\s*\)/) {
4683 if ($line =~ /\btypedef\s/ &&
4684 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
4685 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
4686 $line !~ /\b$typeTypedefs\b/ &&
4687 $line !~ /\b__bitwise\b/) {
4694 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
4719 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
4749 …if ($line =~ /\b(?!AA_|BUILD_|DCCP_|IDA_|KVM_|RWLOCK_|snd_|SPIN_)(?:[a-zA-Z_]*_)?BUG(?:_ON)?(?:_[A…
4757 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
4763 if ($line =~ /\bprintk_ratelimit\s*\(/) {
4769 if ($line =~ /\bprintk\s*\(\s*(?!KERN_[A-Z]+\b)/) {
4775 if ($line =~ /\b(printk(_once|_ratelimited)?)\s*\(\s*KERN_([A-Z]+)/) {
4791 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
4801 if ($line =~ /\b(trace_printk|trace_puts|ftrace_vprintk)\s*\(/) {
4809 if ($line =~ /\bENOSYS\b/) {
4817 if (!$file && $line =~ /\bENOTSUPP\b/) {
4848 if ($line =~ /^.\s*{/ &&
4852 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4866 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
4878 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
4949 while ($line =~ /(.*?\s)\[/g) {
4964 while ($line =~ /($Ident)\s+\(/g) {
4966 my $ctx_before = substr($line, 0, $-[1]);
4999 if (!($line=~/\#\s*include/)) {
5310 if ($line =~ /^\+.*\S\s+;\s*$/) {
5320 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
5342 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
5343 $line =~ /\b(?:else|do)\{/) {
5361 if ($line =~ /}(?!(?:,|;|\)|\}))\S/) {
5371 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
5379 if ($line =~ /\s\]/) {
5389 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
5390 $line !~ /for\s*\(\s+;/) {
5398 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
5399 $line !~ /for\s*\(.*;\s+\)/ &&
5400 $line !~ /:\s+\)/) {
5412 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
5424 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
5518 $line =~ /\bif\s*((?:\(\s*){2,})/) {
5522 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
5535 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
5569 if ($line =~ /\b(if|while|for|switch)\(/) {
5580 if ($line =~ /do\s*(?!{)/) {
5603 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
5672 if ($line =~ /
5688 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
5697 if ($line =~ /}\s*if\b/) {
5703 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
5704 $line !~ /\G(?:
5715 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
5719 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5733 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
5745 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5759 while ($line =~ m{($Constant|$Lval)}g) {
5794 if ($line =~ /\#\s*define.*\\\s+$/) {
5828 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
5978 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
5979 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
5980 $line =~ /^\+.*\\$/) {
5991 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
6031 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
6094 $line =~ /\b(if|while|for|else)\b/) {
6098 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
6151 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
6168 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
6177 if ($line =~ /^\+\s*$String/ &&
6185 my $extracted_string = get_quoted_string($line, $rawline);
6216 if ($line =~ /^\+.*$String/ &&
6218 get_quoted_string($line, $rawline) =~ /\b$context_function\b/ &&
6219 length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) {
6246 if ($line =~ /$String[A-Z_]/ ||
6247 ($line =~ /([A-Za-z0-9_]+)$String/ && $1 !~ /^[Lu]$/)) {
6251 while ($line =~ /($String)/g) {
6260 if ($line =~ /$String\s*[Lu]?"/) {
6264 while ($line =~ /($String)(?=\s*")/g) {
6274 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
6303 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
6309 if ($line =~ /^.\s*\#\s*if\s+1\b/) {
6318 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
6348 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
6366 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
6367 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
6377 if ($line =~ /\bprintk\s*\(\s*KERN_CONT\b|\bpr_cont\s*\(/) {
6384 $line =~ /\b$logFunctions\s*\(/ &&
6406 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
6414 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
6427 if ($line =~ /(\b$InitAttribute\b)/) {
6429 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
6445 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
6459 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
6474 if ($line =~ /\b__read_mostly\b/ &&
6475 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
6485 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
6497 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
6511 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
6519 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
6525 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
6538 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
6549 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
6550 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
6578 if ($line =~ /\b(?:$all_barriers)\s*\(/) {
6589 $line =~ m/\b(?:$underscore_smp_barriers)\s*\(/ &&
6590 $line !~ m/^.\s*\#\s*define\s+(?:$underscore_smp_barriers)\s*\(/) {
6596 if ($line =~ /\bwaitqueue_active\s*\(/) {
6604 if ($line =~ /\bdata_race\s*\(/) {
6612 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
6618 if ($line =~ /\b($Type)\s+($Storage)\b/) {
6623 if ($line =~ /\b$Storage\b/ &&
6624 $line !~ /^.\s*$Storage/ &&
6625 $line =~ /^.\s*(.+?)\$Storage\s/ &&
6633 if ($line =~ /\b$Type\s+$Inline\b/ ||
6634 $line =~ /\b$Inline\s+$Storage\b/) {
6641 $line =~ /\b(__inline__|__inline)\b/) {
6717 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
6718 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
6719 $line =~ /\b__weak\b/)) {
6727 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
6744 if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
6764 if ($line =~ /\bsizeof\s*\(\s*\&/) {
6770 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
6779 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
6786 my $fmt = get_quoted_string($line, $rawline);
6914 if ($line =~ /\bstrlcpy\s*\(/) {
6962 $line =~ /\bsscanf\b/ &&
6976 $line =~ /\bsscanf\b/) {
6993 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
7078 if ($line =~ /\*\s*\)\s*$allocFunctions\b/) {
7086 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*((?:kv|k|v)[mz]alloc(?:_node)?)\s*\(\s*(sizeof\…
7124 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*($Lval)\s*,/ &&
7131 if ($line =~ /\b((?:devm_)?(?:kcalloc|kmalloc_array))\s*\(\s*sizeof\b/) {
7137 if ($line =~ /;\s*;\s*$/) {
7147 $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
7164 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(${CONFIG_}[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:…
7207 if ($line =~ /\b__FUNCTION__\b/) {
7216 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
7222 if ($line =~ /\byield\s*\(\s*\)/) {
7228 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
7255 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
7261 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
7267 if ($line =~ /^.\s*__initcall\s*\(/) {
7273 if ($line =~ /\bspin_is_locked\(/) {
7279 if ($line =~ /\b($deprecated_apis_search)\b\s*\(/) {
7289 $line !~ /\bconst\b/ &&
7290 $line =~ /\bstruct\s+($const_structs)\b(?!\s*\{)/) {
7298 if ($line =~ /\bNR_CPUS\b/ &&
7299 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
7300 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
7301 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
7302 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
7303 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/ &&
7304 $line !~ /^.\s*\.\w+\s*=\s*.*\bNR_CPUS\b/)
7311 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
7318 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
7324 if ($line =~ /\breturn\s+sysfs_emit\s*\(\s*$FuncArg\s*,\s*($String)/ &&
7335 if ($line =~ /\b(?:(?:un)?likely)\s*\(\s*!?\s*(IS_ERR(?:_OR_NULL|_VALUE)?|WARN)/) {
7341 if ($line =~ /\bin_atomic\s*\(/) {
7352 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
7353 $line =~ /__lockdep_no_validate__\s*\)/ ) {
7362 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
7363 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
7433 $line =~ /$mode_perms_search/) {
7466 while ($line =~ m{\b($multi_mode_perms_string_search)\b}g) {
7477 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
7478 my $extracted_string = get_quoted_string($line, $rawline);
7502 if ($line =~ /\.extra[12]\s*=\s*&(zero|one|int_max)\b/) {