Lines Matching refs:line
163 my $line = $_;
165 $line =~ s/\s*\n?$//g;
166 $line =~ s/^\s*//g;
167 $line =~ s/\s+/ /g;
169 next if ($line =~ m/^\s*#/);
170 next if ($line =~ m/^\s*$/);
172 my @words = split(" ", $line);
589 my $line = $_;
591 $line =~ s/\s*\n?$//g;
592 $line =~ s/^\s*//g;
594 next if ($line =~ m/^\s*#/);
595 next if ($line =~ m/^\s*$/);
597 my ($suspect, $fix) = split(/\|\|/, $line);
609 my $line = $_;
611 $line =~ s/\s*\n?$//g;
612 $line =~ s/^\s*//g;
614 next if ($line =~ m/^\s*#/);
615 next if ($line =~ m/^\s*$/);
616 next if ($line =~ m/, disabled/i);
618 $line =~ s/,.*$//;
620 my ($suspect, $fix) = split(/->/, $line);
635 my $line = $_;
637 $line =~ s/\s*\n?$//g;
638 $line =~ s/^\s*//g;
640 next if ($line =~ m/^\s*#/);
641 next if ($line =~ m/^\s*$/);
642 if ($line =~ /\s/) {
643 print("$conststructsfile: '$line' invalid - ignored\n");
648 $const_structs .= $line;
749 foreach my $line (@lines) {
750 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
751 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
753 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
755 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
884 foreach my $line (split(/\n/, $lines)) {
885 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1104 my ($line) = @_;
1107 $line =~ s/^.//;
1108 $line = expand_tabs($line);
1111 my ($white) = ($line =~ /^(\s*)/);
1113 return (length($line), length($white));
1128 my ($line) = @_;
1138 $res = substr($line, 0, 1);
1140 for ($off = 1; $off < length($line); $off++) {
1141 $c = substr($line, $off, 1);
1145 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
1152 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
1158 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1221 my ($line, $rawline) = @_;
1223 return "" if ($line !~ m/($String)/g);
1229 my $line = $linenr - 1;
1252 for (; $remain > 0; $line++) {
1253 last if (!defined $lines[$line]);
1254 next if ($lines[$line] =~ /^-/);
1257 $blk .= $lines[$line] . "\n";
1259 $line++;
1345 $line++;
1358 $line, $remain + 1, $off - $loff + 1, $level);
1435 my $line;
1444 for ($line = $start; $remain > 0; $line++) {
1445 next if ($rawlines[$line] =~ /^-/);
1448 $blk .= $rawlines[$line];
1451 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1453 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1455 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1459 foreach my $c (split(//, $lines[$line])) {
1475 push(@res, $rawlines[$line]);
1524 my $line = $rawlines[$linenr - 1];
1526 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1529 if ($line =~ m@/\*@) {
1535 $current_comment .= $line . "\n" if ($in_comment);
1536 if ($line =~ m@\*/@) {
1560 my $line;
1562 $line = $rawlines[$offset++];
1563 next if (defined($line) && $line =~ /^-/);
1567 return $line;
1800 my ($possible, $line) = @_;
1820 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
1831 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
1837 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
1842 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
1928 my $line = $old_line; #don't modify the array
1929 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
1931 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
1933 fixup_current_range(\$line, $delta_offset, 0);
1950 push(@lines, $line);
1961 my ($linenr, $line) = @_;
1965 LINE => $line,
1971 my ($linenr, $line) = @_;
1975 LINE => $line,
2088 my ($line) = @_;
2092 my $opens = $line =~ tr/\(/\(/;
2093 my $closes = $line =~ tr/\)/\)/;
2101 my $len = length($line);
2104 my $string = substr($line, $pos);
2107 } elsif (substr($line, $pos, 1) eq '(') {
2114 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2181 my $line;
2184 $line = $rawline;
2241 $line = sanitise_line($rawline);
2243 push(@lines, $line);
2246 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2254 if ($setup_docs && $line =~ /^\+/) {
2255 push(@setup_docs, $line);
2264 foreach my $line (@lines) {
2267 my $sline = $line; #copy of $line
2274 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@/) {
2295 } elsif ($line =~ /^( |\+|$)/) {
2303 ($prevline, $stashline) = ($stashline, $line);
2320 if ($line =~ /^diff --git.*?(\S+)$/) {
2325 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2378 (($line =~ m@^\s+diff\b.*a/[\w/]+@ &&
2379 $line =~ m@^\s+diff\b.*a/([\w/]+)\s+b/$1\b@) ||
2380 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2381 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2388 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2398 if ($line =~ /^\s*signed-off-by:/i) {
2405 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
2411 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
2468 my $sig_nospace = $line;
2481 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
2487 if ($line =~ /^\s*cc:\s*.*<?\bstable\@kernel\.org\b>?.*$/i) {
2493 if ($in_commit_log && $line =~ /^\s*change-id:/i) {
2500 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
2501 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
2503 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/)) {
2510 length($line) > 75 &&
2511 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
2513 $line =~ /^\s*(?:[\w\.\-]+\/)++[\w\.\-]+:/ ||
2515 $line =~ /^\s*(?:Fixes:|Link:)/i ||
2525 $line =~ /^\s*$/) {
2531 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink):/i &&
2532 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
2533 ($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
2534 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
2535 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
2536 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
2549 if ($line =~ /\b(c)ommit\s+([0-9a-f]{5,})\b/i) {
2552 } elsif ($line =~ /\b([0-9a-f]{12,40})\b/i) {
2556 $short = 0 if ($line =~ /\bcommit\s+[0-9a-f]{12,40}/i);
2557 $long = 1 if ($line =~ /\bcommit\s+[0-9a-f]{41,}/i);
2558 $space = 0 if ($line =~ /\bcommit [0-9a-f]/i);
2559 $case = 0 if ($line =~ /\b[Cc]ommit\s+[0-9a-f]{5,40}[^A-F]/);
2560 if ($line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("([^"]+)"\)/i) {
2563 } elsif ($line =~ /\bcommit\s+[0-9a-f]{5,}\s*$/i &&
2568 } elsif ($line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("[^"]+$/i &&
2571 $line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("([^"]+)$/i;
2589 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
2590 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
2591 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
2599 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
2607 while ($line =~ m{(?:^|\s)(/\S*)}g) {
2620 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
2658 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
2675 next if (!$hunk_line || $line =~ /^-/);
2678 if ($line =~ /^\+.*\015/) {
2711 $line =~ /^\+\s*config\s+/) {
2751 $line =~ /.\s*depends on\s+.*\bEXPERIMENTAL\b/) {
2758 $line =~ /^\+\s*\bboolean\b/) {
2764 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
2779 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
2780 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
2826 if ($line =~ /^\+/ && $length > $max_line_length) {
2833 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
2834 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2839 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
2840 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
2844 } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/) {
2850 } elsif ($line =~ /($;[\s$;]*)$/ &&
2851 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2856 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2868 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
2875 if ($line =~ /\.[lL][[:space:]]*=.*&[[:space:]]*0x[fF][fF][fF][fF]/) {
2876 my $herevet = "$here\n" . cat_vet($line) . "\n";
2880 if ($line =~ /\.[hH][[:space:]]*=.*>>[[:space:]]*16/) {
2881 my $herevet = "$here\n" . cat_vet($line) . "\n";
2944 $line =~ /^(\+| )([ \t]*)/;
2957 $fix && $line =~ /^\+/) {
2972 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
3013 $line =~ /^\+[ \t]*$;/ && #leading comment
3038 $line =~ /^\+/ &&
3039 !($line =~ /^\+\s*$/ ||
3040 $line =~ /^\+\s*EXPORT_SYMBOL/ ||
3041 $line =~ /^\+\s*MODULE_/i ||
3042 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
3043 $line =~ /^\+[a-z_]*init/ ||
3044 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
3045 $line =~ /^\+\s*DECLARE/ ||
3046 $line =~ /^\+\s*__setup/)) {
3056 $line =~ /^\+\s*$/ &&
3113 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
3150 if ($line =~ /^\+\s*\#\s*if.*\bCONFIG_EXPERIMENTAL\b/) {
3162 if ($line =~ /__builtin_bfin_csync/) {
3163 my $herevet = "$here\n" . cat_vet($line) . "\n";
3167 if ($line =~ /__builtin_bfin_ssync/) {
3168 my $herevet = "$here\n" . cat_vet($line) . "\n";
3174 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
3261 if ($line=~/\bswitch\s*\(.*\)/) {
3284 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
3289 if ($line =~ /^\+\t{6,}/) {
3330 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b)/ && $line !~ /^.\s*#/ &…
3429 my $opline = $line; $opline =~ s/^./ /;
3442 next if ($line =~ /^[^\+]/);
3445 while ($line =~ m{\b($Declare)\s*(?!char\b|short\b|int\b|long\b)\s*($Ident)?\s*[=,;\[\)\(]}g) {
3470 if ($line =~ /^.\s*$Declare\s*$/) {
3473 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
3481 if ($line =~ /^.\s*$Modifier\s*$/) {
3484 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
3492 if ($line =~ /^.\s*{/ &&
3496 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
3502 $fixedline = $line;
3526 if ($line =~ m{//}) {
3530 my $line = $fixed[$fixlinenr];
3531 if ($line =~ /\/\/(.*)$/) {
3538 $line =~ s@//.*@@;
3575 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/ ||
3576 $line =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) {
3587 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/) {
3595 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
3612 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
3619 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
3638 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
3645 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
3647 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
3658 if ($line =~ /(\b$Type\s+$Ident)\s*\(\s*\)/) {
3668 if ($line =~ /\btypedef\s/ &&
3669 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
3670 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
3671 $line !~ /\b$typeTypedefs\b/ &&
3672 $line !~ /\b__bitwise(?:__|)\b/) {
3679 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
3704 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
3734 if ($line =~ /\b(?:BUG|BUG_ON)\b/) {
3742 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
3748 if ($line =~ /\bprintk_ratelimit\s*\(/) {
3758 if ($line =~ /\bprintk\((?!KERN_)\s*"/) {
3777 if ($line =~ /\bprintk\s*\(\s*KERN_([A-Z]+)/) {
3787 if ($line =~ /\bpr_warning\s*\(/) {
3796 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
3808 if ($line =~ /\bENOSYS\b/) {
3815 if (($line=~/$Type\s*$Ident\(.*\).*\s*{/) and
3816 !($line=~/\#\s*define.*do\s\{/) and !($line=~/}/)) {
3834 if ($line =~ /^.\s*{/ &&
3838 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
3852 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
3864 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
3935 while ($line =~ /(.*?\s)\[/g) {
3950 while ($line =~ /($Ident)\s+\(/g) {
3952 my $ctx_before = substr($line, 0, $-[1]);
3985 if (!($line=~/\#\s*include/)) {
4296 if ($line =~ /^\+.*\S\s+;\s*$/) {
4306 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
4328 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
4329 $line =~ /do\{/) {
4347 if ($line =~ /}(?!(?:,|;|\)))\S/) {
4357 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
4365 if ($line =~ /\s\]/) {
4375 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
4376 $line !~ /for\s*\(\s+;/) {
4384 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
4385 $line !~ /for\s*\(.*;\s+\)/ &&
4386 $line !~ /:\s+\)/) {
4398 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
4410 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
4422 if ($line=~/^.\s+[A-Za-z\d_]+:(?![0-9]+)/ and
4423 !($line=~/^. [A-Za-z\d_]+:/) and !($line=~/^.\s+default:/)) {
4463 $line =~ /\bif\s*((?:\(\s*){2,})/) {
4467 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
4480 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
4514 if ($line =~ /\b(if|while|for|switch)\(/) {
4525 if ($line =~ /do\s*(?!{)/) {
4548 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
4581 if ($line =~ /
4597 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
4606 if ($line =~ /}\s*if\b/) {
4612 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
4613 $line !~ /\G(?:
4624 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
4628 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4642 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
4654 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4668 while ($line =~ m{($Constant|$Lval)}g) {
4711 if ($line =~ /\#\s*define.*\\\s+$/) {
4745 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
4898 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
4899 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
4900 $line =~ /^\+.*\\$/) {
4911 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
4963 if ($realfile eq 'vmlinux.lds.h' && $line =~ /(?:(?:^|\s)$Ident\s*=|=\s*$Ident(?:\s|$))/) {
4969 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
5032 $line =~ /\b(if|while|for|else)\b/) {
5036 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
5087 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
5104 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
5113 if ($line =~ /^\+\s*$String/ &&
5121 my $extracted_string = get_quoted_string($line, $rawline);
5159 if ($line =~ /$String[A-Z_]/ || $line =~ /[A-Za-z0-9_]$String/) {
5165 if ($line =~ /$String\s*"/) {
5172 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
5193 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
5203 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
5233 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
5250 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
5251 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
5262 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
5270 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
5283 if ($line =~ /(\b$InitAttribute\b)/) {
5285 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
5301 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
5315 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
5330 if ($line =~ /\b__read_mostly\b/ &&
5331 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
5341 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
5353 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
5367 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
5375 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
5381 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
5394 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
5405 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
5406 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
5435 if ($line =~ /\b(?:$all_barriers)\s*\(/) {
5446 $line =~ m/\b(?:$underscore_smp_barriers)\s*\(/ &&
5447 $line !~ m/^.\s*\#\s*define\s+(?:$underscore_smp_barriers)\s*\(/) {
5453 if ($line =~ /\bwaitqueue_active\s*\(/) {
5471 if ($line =~ /\b(synchronize_rcu_expedited|synchronize_sched_expedited)\(/) {
5478 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
5484 if ($line =~ /\b$Storage\b/ && $line !~ /^.\s*$Storage\b/) {
5491 if ($line =~ /\b$Type\s+$Inline\b/ ||
5492 $line =~ /\b$Inline\s+$Storage\b/) {
5499 $line =~ /\b(__inline__|__inline)\b/) {
5510 $line =~ /\b__attribute__\s*\(\s*\(.*\bpacked\b/) {
5517 $line =~ /\b__attribute__\s*\(\s*\(.*aligned/) {
5524 $line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf/) {
5535 $line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*scanf\b/) {
5545 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
5546 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
5547 $line =~ /\b__weak\b/)) {
5554 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
5571 if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
5591 if ($line =~ /\bsizeof\s*\(\s*\&/) {
5597 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
5606 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
5613 my $fmt = get_quoted_string($line, $rawline);
5727 $line =~ /\bsscanf\b/ &&
5744 $line =~ /\bsscanf\b/) {
5764 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
5826 if ($line =~ /\*\s*\)\s*[kv][czm]alloc(_node){0,1}\b/) {
5834 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*([kv][mz]alloc(?:_node)?)\s*\(\s*(sizeof\s*\(\s…
5841 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*(k[mz]alloc)\s*\(\s*($FuncArg)\s*\*\s*($FuncArg…
5866 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*\1\s*,/) {
5872 if ($line =~ /\b(kcalloc|kmalloc_array)\s*\(\s*sizeof\b/) {
5878 if ($line =~ /;\s*;\s*$/) {
5888 $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
5899 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(CONFIG_[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:\s*…
5909 if ($line =~ /^.\s*(?:case\s+(?:$Ident|$Constant)\s*|default):/) {
5948 if ($line =~ /\b__FUNCTION__\b/) {
5957 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
5963 if ($line =~ /\byield\s*\(\s*\)/) {
5969 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
5996 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
6002 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
6008 if ($line =~ /^.\s*__initcall\s*\(/) {
6014 if ($line !~ /\bconst\b/ &&
6015 $line =~ /\bstruct\s+($const_structs)\b/) {
6023 if ($line =~ /\bNR_CPUS\b/ &&
6024 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
6025 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
6026 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
6027 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
6028 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/)
6035 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
6042 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
6048 if ($line =~ /\bin_atomic\s*\(/) {
6060 $line =~ /\bACCESS_ONCE\s*$balanced_parens\s*(=(?!=))?\s*($FuncArg)?/) {
6081 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
6082 $line =~ /__lockdep_no_validate__\s*\)/ ) {
6091 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
6092 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
6101 $line =~ /$mode_perms_search/) {
6136 if ($line =~ /\b$mode_perms_string_search\b/) {
6142 while ($line =~ /\b(($mode_perms_string_search)\b(?:\s*\|\s*)?\s*)/g) {
6143 $curpos = pos($line);
6164 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
6165 my $extracted_string = get_quoted_string($line, $rawline);