Lines Matching refs:line
223 my $line = $_;
225 $line =~ s/\s*\n?$//g;
226 $line =~ s/^\s*//g;
227 $line =~ s/\s+/ /g;
229 next if ($line =~ m/^\s*#/);
230 next if ($line =~ m/^\s*$/);
232 my @words = split(" ", $line);
252 my $line = $_;
253 $line =~ s/\s+$//;
255 if ($line =~ /^\s*\*\*(.+)\*\*$/) {
263 if ($line =~ /^(?:\s{4,}|$)/) {
264 $line =~ s/^\s{4}//;
265 $desc .= $line;
874 my $line = $_;
876 $line =~ s/\s*\n?$//g;
877 $line =~ s/^\s*//g;
879 next if ($line =~ m/^\s*#/);
880 next if ($line =~ m/^\s*$/);
882 my ($suspect, $fix) = split(/\|\|/, $line);
894 my $line = $_;
896 $line =~ s/\s*\n?$//g;
897 $line =~ s/^\s*//g;
899 next if ($line =~ m/^\s*#/);
900 next if ($line =~ m/^\s*$/);
901 next if ($line =~ m/, disabled/i);
903 $line =~ s/,.*$//;
905 my ($suspect, $fix) = split(/->/, $line);
922 my $line = $_;
924 $line =~ s/\s*\n?$//g;
925 $line =~ s/^\s*//g;
927 next if ($line =~ m/^\s*#/);
928 next if ($line =~ m/^\s*$/);
929 if ($line =~ /\s/) {
930 print("$file: '$line' invalid - ignored\n");
935 $$wordsRef .= $line;
1058 foreach my $line (@lines) {
1059 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
1060 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
1062 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
1064 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
1220 foreach my $line (split(/\n/, $lines)) {
1221 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1482 my ($line) = @_;
1485 $line =~ s/^.//;
1486 $line = expand_tabs($line);
1489 my ($white) = ($line =~ /^(\s*)/);
1491 return (length($line), length($white));
1506 my ($line) = @_;
1516 $res = substr($line, 0, 1);
1518 for ($off = 1; $off < length($line); $off++) {
1519 $c = substr($line, $off, 1);
1523 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
1530 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
1536 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1599 my ($line, $rawline) = @_;
1601 return "" if (!defined($line) || !defined($rawline));
1602 return "" if ($line !~ m/($String)/g);
1608 my $line = $linenr - 1;
1631 for (; $remain > 0; $line++) {
1632 last if (!defined $lines[$line]);
1633 next if ($lines[$line] =~ /^-/);
1636 $blk .= $lines[$line] . "\n";
1638 $line++;
1724 $line++;
1737 $line, $remain + 1, $off - $loff + 1, $level);
1814 my $line;
1823 for ($line = $start; $remain > 0; $line++) {
1824 next if ($rawlines[$line] =~ /^-/);
1827 $blk .= $rawlines[$line];
1830 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1832 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1834 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1838 foreach my $c (split(//, $lines[$line])) {
1854 push(@res, $rawlines[$line]);
1911 my $line = $rawlines[$linenr - 1];
1913 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1916 if ($line =~ m@/\*@) {
1922 $current_comment .= $line . "\n" if ($in_comment);
1923 if ($line =~ m@\*/@) {
1947 my $line;
1949 $line = $rawlines[$offset++];
1950 next if (defined($line) && $line =~ /^-/);
1954 return $line;
2209 my ($possible, $line) = @_;
2229 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
2240 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
2246 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
2251 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
2348 my $line = $old_line; #don't modify the array
2349 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
2351 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
2353 fixup_current_range(\$line, $delta_offset, 0);
2370 push(@lines, $line);
2381 my ($linenr, $line) = @_;
2385 LINE => $line,
2391 my ($linenr, $line) = @_;
2395 LINE => $line,
2508 my ($line) = @_;
2512 my $opens = $line =~ tr/\(/\(/;
2513 my $closes = $line =~ tr/\)/\)/;
2521 my $len = length($line);
2524 my $string = substr($line, $pos);
2527 } elsif (substr($line, $pos, 1) eq '(') {
2534 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2538 my ($line, $rawline) = @_;
2541 for my $i (0 .. (length($line) - 1)) {
2542 if (substr($line, $i, 1) eq "$;") {
2634 my $line;
2637 $line = $rawline;
2694 $line = sanitise_line($rawline);
2696 push(@lines, $line);
2699 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2707 if ($setup_docs && $line =~ /^\+/) {
2708 push(@setup_docs, $line);
2717 foreach my $line (@lines) {
2720 my $sline = $line; #copy of $line
2724 my $raw_comment = get_raw_comment($line, $rawline);
2728 ($line =~ /^ mode change [0-7]+ => [0-7]+ \S+\s*$/ ||
2729 ($line =~ /^rename (?:from|to) \S+\s*$/ ||
2730 $line =~ /^diff --git a\/[\w\/\.\_\-]+ b\/\S+\s*$/))) {
2736 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@(.*)/) {
2763 } elsif ($line =~ /^( |\+|$)/) {
2771 ($prevline, $stashline) = ($stashline, $line);
2788 if ($line =~ /^diff --git.*?(\S+)$/) {
2793 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2861 if ($line !~ /^\s*$/) {
2872 (($line =~ m@^\s+diff\b.*a/([\w/]+)@ &&
2873 $line =~ m@^\s+diff\b.*a/[\w/]+\s+b/$1\b@) ||
2874 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2875 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2882 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2892 if (decode("MIME-Header", $line) =~ /^From:\s*(.*)/) {
2898 $author = encode("utf8", $author) if ($line =~ /=\?utf-8\?/i);
2904 if ($line =~ /^\s*signed-off-by:\s*(.*)/i) {
2943 if ($line =~ /^---$/) {
2950 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
2956 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
3088 my $sig_nospace = $line;
3119 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
3125 if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) {
3135 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
3136 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
3138 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/) ||
3139 $line =~ /^(?:\s+\w+:\s+[0-9a-fA-F]+){3,3}/ ||
3140 $line =~ /^\s*\#\d+\s*\[[0-9a-fA-F]+\]\s*\w+ at [0-9a-fA-F]+/) {
3147 length($line) > 75 &&
3148 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
3150 $line =~ /^\s*(?:[\w\.\-]+\/)++[\w\.\-]+:/ ||
3152 $line =~ /^\s*(?:Fixes:|Link:|$signature_tags)/i ||
3162 $line =~ /^\s*$/) {
3167 if ($in_commit_log && $line =~ /^#/) {
3186 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i &&
3187 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
3188 (($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
3189 …($line =~ /\bcommit\s*$/i && defined($rawlines[$linenr]) && $rawlines[$linenr] =~ /^\s*[0-9a-f]{5,…
3190 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
3191 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
3192 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
3206 my $input = $line;
3207 if ($line =~ /(?:\bcommit\s+[0-9a-f]{5,}|\bcommit\s*$)/i) {
3248 $last_git_commit_id_linenr = $linenr if ($line =~ /\bcommit\s*$/i);
3253 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
3254 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
3255 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
3265 ($line =~ /^new file mode\s*\d+\s*$/) &&
3272 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
3279 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
3317 while ($line =~ m{(?:^|\s)(/\S*)}g) {
3331 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
3351 if ($in_commit_log && $line =~ /(^fixes:|\bcommit)\s+([0-9a-f]{6,40})\b/i) {
3416 next if (!$hunk_line || $line =~ /^-/);
3419 if ($line =~ /^\+.*\015/) {
3456 $line =~ /^\+\s*(?:config|menuconfig|choice)\b/) {
3541 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
3556 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
3557 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
3646 substr($line, @-, @+ - @-) eq "$;" x (@+ - @-)) {
3667 if ($line =~ /^\+/ && $length > $max_line_length) {
3674 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
3675 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3680 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
3681 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
3685 } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
3686 $line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
3696 } elsif ($line =~ /($;[\s$;]*)$/ &&
3697 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3702 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3716 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
3726 $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) {
3808 $line =~ /^(\+| )([ \t]*)/;
3821 $fix && $line =~ /^\+/) {
3836 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
3877 $line =~ /^\+[ \t]*$;/ && #leading comment
3902 $line =~ /^\+/ &&
3903 !($line =~ /^\+\s*$/ ||
3904 $line =~ /^\+\s*EXPORT_SYMBOL/ ||
3905 $line =~ /^\+\s*MODULE_/i ||
3906 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
3907 $line =~ /^\+[a-z_]*init/ ||
3908 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
3909 $line =~ /^\+\s*DECLARE/ ||
3910 $line =~ /^\+\s*builtin_[\w_]*driver/ ||
3911 $line =~ /^\+\s*__setup/)) {
3921 $line =~ /^\+\s*$/ &&
3983 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
3996 if ($line =~ /^\+.*([\[\(])\s*$/) {
4047 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
4134 if ($line=~/\bswitch\s*\(.*\)/) {
4157 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
4162 if ($line =~ /^\+\t{6,}/) {
4203 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|(?:do|else)\b)/ && $line !~ /…
4304 my $opline = $line; $opline =~ s/^./ /;
4317 next if ($line =~ /^[^\+]/);
4322 if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {
4324 …if ($line =~ /^\+\s*(?:$Declare)?$var\s*=\s*(?:$var|\*\s*\(?\s*&\s*\(?\s*$var\s*\)?\s*\)?)\s*[;,]/…
4332 $line =~ /^\+\s*(?!\#\s*(?!define\s+|if))\s*$Lval/) {
4335 $line =~ /^.\s*($Lval)/;
4343 while ($line =~ m{\b($Declare)\s*(?!char\b|short\b|int\b|long\b)\s*($Ident)?\s*[=,;\[\)\(]}g) {
4368 if ($line =~ /^.\s*$Declare\s*$/) {
4371 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
4379 if ($line =~ /^.\s*$Modifier\s*$/) {
4382 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
4390 if ($line =~ /^.\s*{/ &&
4394 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4400 $fixedline = $line;
4424 if ($line =~ m{//}) {
4428 my $line = $fixed[$fixlinenr];
4429 if ($line =~ /\/\/(.*)$/) {
4436 $line =~ s@//.*@@;
4472 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
4483 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/ &&
4492 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
4529 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
4536 …if ($line =~ /^\+\s*const\s+(char|unsigned\s+char|_*u8|(?:[us]_)?int8_t)\s+\w+\s*\[\s*(?:\w+\s*)?\…
4545 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
4576 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
4583 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
4585 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
4596 if ($line =~ /(\b$Type\s*$Ident)\s*\(\s*\)/) {
4606 if ($line =~ /\btypedef\s/ &&
4607 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
4608 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
4609 $line !~ /\b$typeTypedefs\b/ &&
4610 $line !~ /\b__bitwise\b/) {
4617 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
4642 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
4672 if ($line =~ /\b(?:BUG|BUG_ON)\b/) {
4680 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
4686 if ($line =~ /\bprintk_ratelimit\s*\(/) {
4692 if ($line =~ /\bprintk\s*\(\s*(?!KERN_[A-Z]+\b)/) {
4698 if ($line =~ /\b(printk(_once|_ratelimited)?)\s*\(\s*KERN_([A-Z]+)/) {
4714 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
4724 if ($line =~ /\b(trace_printk|trace_puts|ftrace_vprintk)\s*\(/) {
4732 if ($line =~ /\bENOSYS\b/) {
4740 if (!$file && $line =~ /\bENOTSUPP\b/) {
4771 if ($line =~ /^.\s*{/ &&
4775 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4789 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
4801 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
4872 while ($line =~ /(.*?\s)\[/g) {
4887 while ($line =~ /($Ident)\s+\(/g) {
4889 my $ctx_before = substr($line, 0, $-[1]);
4922 if (!($line=~/\#\s*include/)) {
5233 if ($line =~ /^\+.*\S\s+;\s*$/) {
5243 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
5265 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
5266 $line =~ /\b(?:else|do)\{/) {
5284 if ($line =~ /}(?!(?:,|;|\)|\}))\S/) {
5294 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
5302 if ($line =~ /\s\]/) {
5312 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
5313 $line !~ /for\s*\(\s+;/) {
5321 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
5322 $line !~ /for\s*\(.*;\s+\)/ &&
5323 $line !~ /:\s+\)/) {
5335 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
5347 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
5441 $line =~ /\bif\s*((?:\(\s*){2,})/) {
5445 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
5458 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
5492 if ($line =~ /\b(if|while|for|switch)\(/) {
5503 if ($line =~ /do\s*(?!{)/) {
5526 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
5581 if ($line =~ /
5597 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
5606 if ($line =~ /}\s*if\b/) {
5612 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
5613 $line !~ /\G(?:
5624 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
5628 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5642 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
5654 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5668 while ($line =~ m{($Constant|$Lval)}g) {
5703 if ($line =~ /\#\s*define.*\\\s+$/) {
5737 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
5887 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
5888 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
5889 $line =~ /^\+.*\\$/) {
5900 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
5940 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
6003 $line =~ /\b(if|while|for|else)\b/) {
6007 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
6060 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
6077 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
6086 if ($line =~ /^\+\s*$String/ &&
6094 my $extracted_string = get_quoted_string($line, $rawline);
6125 if ($line =~ /^\+.*$String/ &&
6127 get_quoted_string($line, $rawline) =~ /\b$context_function\b/ &&
6128 length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) {
6155 if ($line =~ /$String[A-Z_]/ ||
6156 ($line =~ /([A-Za-z0-9_]+)$String/ && $1 !~ /^[Lu]$/)) {
6160 while ($line =~ /($String)/g) {
6169 if ($line =~ /$String\s*[Lu]?"/) {
6173 while ($line =~ /($String)(?=\s*")/g) {
6183 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
6212 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
6218 if ($line =~ /^.\s*\#\s*if\s+1\b/) {
6227 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
6257 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
6275 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
6276 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
6286 if ($line =~ /\bprintk\s*\(\s*KERN_CONT\b|\bpr_cont\s*\(/) {
6293 $line =~ /\b$logFunctions\s*\(/ &&
6315 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
6323 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
6336 if ($line =~ /(\b$InitAttribute\b)/) {
6338 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
6354 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
6368 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
6383 if ($line =~ /\b__read_mostly\b/ &&
6384 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
6394 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
6406 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
6420 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
6428 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
6434 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
6447 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
6458 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
6459 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
6487 if ($line =~ /\b(?:$all_barriers)\s*\(/) {
6498 $line =~ m/\b(?:$underscore_smp_barriers)\s*\(/ &&
6499 $line !~ m/^.\s*\#\s*define\s+(?:$underscore_smp_barriers)\s*\(/) {
6505 if ($line =~ /\bwaitqueue_active\s*\(/) {
6513 if ($line =~ /\bdata_race\s*\(/) {
6521 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
6527 if ($line =~ /\b($Type)\s+($Storage)\b/) {
6532 if ($line =~ /\b$Storage\b/ &&
6533 $line !~ /^.\s*$Storage/ &&
6534 $line =~ /^.\s*(.+?)\$Storage\s/ &&
6542 if ($line =~ /\b$Type\s+$Inline\b/ ||
6543 $line =~ /\b$Inline\s+$Storage\b/) {
6550 $line =~ /\b(__inline__|__inline)\b/) {
6626 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
6627 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
6628 $line =~ /\b__weak\b/)) {
6636 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
6653 if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
6673 if ($line =~ /\bsizeof\s*\(\s*\&/) {
6679 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
6688 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
6695 my $fmt = get_quoted_string($line, $rawline);
6819 if ($line =~ /\bstrlcpy\s*\(/) {
6867 $line =~ /\bsscanf\b/ &&
6881 $line =~ /\bsscanf\b/) {
6898 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
6983 if ($line =~ /\*\s*\)\s*$allocFunctions\b/) {
6991 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*((?:kv|k|v)[mz]alloc(?:_node)?)\s*\(\s*(sizeof\…
7027 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*($Lval)\s*,/ &&
7034 if ($line =~ /\b((?:devm_)?(?:kcalloc|kmalloc_array))\s*\(\s*sizeof\b/) {
7040 if ($line =~ /;\s*;\s*$/) {
7050 $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
7067 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(${CONFIG_}[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:…
7110 if ($line =~ /\b__FUNCTION__\b/) {
7119 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
7125 if ($line =~ /\byield\s*\(\s*\)/) {
7131 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
7158 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
7164 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
7170 if ($line =~ /^.\s*__initcall\s*\(/) {
7176 if ($line =~ /\bspin_is_locked\(/) {
7182 if ($line =~ /\b($deprecated_apis_search)\b\s*\(/) {
7192 $line !~ /\bconst\b/ &&
7193 $line =~ /\bstruct\s+($const_structs)\b(?!\s*\{)/) {
7201 if ($line =~ /\bNR_CPUS\b/ &&
7202 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
7203 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
7204 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
7205 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
7206 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/ &&
7207 $line !~ /^.\s*\.\w+\s*=\s*.*\bNR_CPUS\b/)
7214 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
7221 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
7227 if ($line =~ /\breturn\s+sysfs_emit\s*\(\s*$FuncArg\s*,\s*($String)/ &&
7238 if ($line =~ /\b(?:(?:un)?likely)\s*\(\s*!?\s*(IS_ERR(?:_OR_NULL|_VALUE)?|WARN)/) {
7244 if ($line =~ /\bin_atomic\s*\(/) {
7255 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
7256 $line =~ /__lockdep_no_validate__\s*\)/ ) {
7265 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
7266 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
7336 $line =~ /$mode_perms_search/) {
7369 while ($line =~ m{\b($multi_mode_perms_string_search)\b}g) {
7380 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
7381 my $extracted_string = get_quoted_string($line, $rawline);
7398 if ($line =~ /\.extra[12]\s*=\s*&(zero|one|int_max)\b/) {