Lines Matching refs:line

168 		my $line = $_;
170 $line =~ s/\s*\n?$//g;
171 $line =~ s/^\s*//g;
172 $line =~ s/\s+/ /g;
174 next if ($line =~ m/^\s*#/);
175 next if ($line =~ m/^\s*$/);
177 my @words = split(" ", $line);
650 my $line = $_;
652 $line =~ s/\s*\n?$//g;
653 $line =~ s/^\s*//g;
655 next if ($line =~ m/^\s*#/);
656 next if ($line =~ m/^\s*$/);
658 my ($suspect, $fix) = split(/\|\|/, $line);
670 my $line = $_;
672 $line =~ s/\s*\n?$//g;
673 $line =~ s/^\s*//g;
675 next if ($line =~ m/^\s*#/);
676 next if ($line =~ m/^\s*$/);
677 next if ($line =~ m/, disabled/i);
679 $line =~ s/,.*$//;
681 my ($suspect, $fix) = split(/->/, $line);
698 my $line = $_;
700 $line =~ s/\s*\n?$//g;
701 $line =~ s/^\s*//g;
703 next if ($line =~ m/^\s*#/);
704 next if ($line =~ m/^\s*$/);
705 if ($line =~ /\s/) {
706 print("$file: '$line' invalid - ignored\n");
711 $$wordsRef .= $line;
826 foreach my $line (@lines) {
827 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
828 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
830 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
832 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
962 foreach my $line (split(/\n/, $lines)) {
963 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1182 my ($line) = @_;
1185 $line =~ s/^.//;
1186 $line = expand_tabs($line);
1189 my ($white) = ($line =~ /^(\s*)/);
1191 return (length($line), length($white));
1206 my ($line) = @_;
1216 $res = substr($line, 0, 1);
1218 for ($off = 1; $off < length($line); $off++) {
1219 $c = substr($line, $off, 1);
1223 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
1230 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
1236 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1299 my ($line, $rawline) = @_;
1301 return "" if (!defined($line) || !defined($rawline));
1302 return "" if ($line !~ m/($String)/g);
1308 my $line = $linenr - 1;
1331 for (; $remain > 0; $line++) {
1332 last if (!defined $lines[$line]);
1333 next if ($lines[$line] =~ /^-/);
1336 $blk .= $lines[$line] . "\n";
1338 $line++;
1424 $line++;
1437 $line, $remain + 1, $off - $loff + 1, $level);
1514 my $line;
1523 for ($line = $start; $remain > 0; $line++) {
1524 next if ($rawlines[$line] =~ /^-/);
1527 $blk .= $rawlines[$line];
1530 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1532 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1534 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1538 foreach my $c (split(//, $lines[$line])) {
1554 push(@res, $rawlines[$line]);
1603 my $line = $rawlines[$linenr - 1];
1605 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1608 if ($line =~ m@/\*@) {
1614 $current_comment .= $line . "\n" if ($in_comment);
1615 if ($line =~ m@\*/@) {
1639 my $line;
1641 $line = $rawlines[$offset++];
1642 next if (defined($line) && $line =~ /^-/);
1646 return $line;
1901 my ($possible, $line) = @_;
1921 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
1932 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
1938 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
1943 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
2031 my $line = $old_line; #don't modify the array
2032 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
2034 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
2036 fixup_current_range(\$line, $delta_offset, 0);
2053 push(@lines, $line);
2064 my ($linenr, $line) = @_;
2068 LINE => $line,
2074 my ($linenr, $line) = @_;
2078 LINE => $line,
2191 my ($line) = @_;
2195 my $opens = $line =~ tr/\(/\(/;
2196 my $closes = $line =~ tr/\)/\)/;
2204 my $len = length($line);
2207 my $string = substr($line, $pos);
2210 } elsif (substr($line, $pos, 1) eq '(') {
2217 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2287 my $line;
2290 $line = $rawline;
2347 $line = sanitise_line($rawline);
2349 push(@lines, $line);
2352 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2360 if ($setup_docs && $line =~ /^\+/) {
2361 push(@setup_docs, $line);
2370 foreach my $line (@lines) {
2373 my $sline = $line; #copy of $line
2380 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@(.*)/) {
2407 } elsif ($line =~ /^( |\+|$)/) {
2415 ($prevline, $stashline) = ($stashline, $line);
2432 if ($line =~ /^diff --git.*?(\S+)$/) {
2437 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2491 (($line =~ m@^\s+diff\b.*a/[\w/]+@ &&
2492 $line =~ m@^\s+diff\b.*a/([\w/]+)\s+b/$1\b@) ||
2493 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2494 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2501 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2511 if ($line =~ /^\s*signed-off-by:/i) {
2518 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
2524 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
2581 my $sig_nospace = $line;
2594 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
2600 if ($line =~ /^\s*cc:\s*.*<?\bstable\@kernel\.org\b>?.*$/i) {
2606 if ($in_commit_log && $line =~ /^\s*change-id:/i) {
2613 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
2614 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
2616 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/)) {
2623 length($line) > 75 &&
2624 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
2626 $line =~ /^\s*(?:[\w\.\-]+\/)++[\w\.\-]+:/ ||
2628 $line =~ /^\s*(?:Fixes:|Link:)/i ||
2638 $line =~ /^\s*$/) {
2644 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink):/i &&
2645 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
2646 ($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
2647 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
2648 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
2649 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
2662 if ($line =~ /\b(c)ommit\s+([0-9a-f]{5,})\b/i) {
2665 } elsif ($line =~ /\b([0-9a-f]{12,40})\b/i) {
2669 $short = 0 if ($line =~ /\bcommit\s+[0-9a-f]{12,40}/i);
2670 $long = 1 if ($line =~ /\bcommit\s+[0-9a-f]{41,}/i);
2671 $space = 0 if ($line =~ /\bcommit [0-9a-f]/i);
2672 $case = 0 if ($line =~ /\b[Cc]ommit\s+[0-9a-f]{5,40}[^A-F]/);
2673 if ($line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("([^"]+)"\)/i) {
2676 } elsif ($line =~ /\bcommit\s+[0-9a-f]{5,}\s*$/i &&
2681 } elsif ($line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("[^"]+$/i &&
2684 $line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("([^"]+)$/i;
2703 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
2704 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
2705 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
2714 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
2721 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
2759 while ($line =~ m{(?:^|\s)(/\S*)}g) {
2773 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
2790 next if (!$hunk_line || $line =~ /^-/);
2793 if ($line =~ /^\+.*\015/) {
2830 $line =~ /^\+\s*(?:config|menuconfig|choice)\b/) {
2891 $line =~ /^\+\s*\bboolean\b/) {
2897 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
2912 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
2913 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
2984 if ($line =~ /^\+/ && $length > $max_line_length) {
2991 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
2992 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2997 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
2998 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
3002 } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
3003 $line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
3013 } elsif ($line =~ /($;[\s$;]*)$/ &&
3014 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3019 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3031 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
3093 $line =~ /^(\+| )([ \t]*)/;
3106 $fix && $line =~ /^\+/) {
3121 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
3162 $line =~ /^\+[ \t]*$;/ && #leading comment
3187 $line =~ /^\+/ &&
3188 !($line =~ /^\+\s*$/ ||
3189 $line =~ /^\+\s*EXPORT_SYMBOL/ ||
3190 $line =~ /^\+\s*MODULE_/i ||
3191 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
3192 $line =~ /^\+[a-z_]*init/ ||
3193 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
3194 $line =~ /^\+\s*DECLARE/ ||
3195 $line =~ /^\+\s*builtin_[\w_]*driver/ ||
3196 $line =~ /^\+\s*__setup/)) {
3206 $line =~ /^\+\s*$/ &&
3263 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
3276 if ($line =~ /^\+.*([\[\(])\s*$/) {
3323 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
3410 if ($line=~/\bswitch\s*\(.*\)/) {
3433 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
3438 if ($line =~ /^\+\t{6,}/) {
3479 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|(?:do|else)\b)/ && $line !~ /…
3580 my $opline = $line; $opline =~ s/^./ /;
3593 next if ($line =~ /^[^\+]/);
3597 $line =~ /^\+\s*(?!\#\s*(?!define\s+|if))\s*$Lval/) {
3600 $line =~ /^.\s*($Lval)/;
3608 while ($line =~ m{\b($Declare)\s*(?!char\b|short\b|int\b|long\b)\s*($Ident)?\s*[=,;\[\)\(]}g) {
3633 if ($line =~ /^.\s*$Declare\s*$/) {
3636 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
3644 if ($line =~ /^.\s*$Modifier\s*$/) {
3647 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
3655 if ($line =~ /^.\s*{/ &&
3659 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
3665 $fixedline = $line;
3689 if ($line =~ m{//}) {
3693 my $line = $fixed[$fixlinenr];
3694 if ($line =~ /\/\/(.*)$/) {
3701 $line =~ s@//.*@@;
3738 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/ ||
3739 $line =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) {
3750 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/) {
3758 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
3775 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
3782 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
3801 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
3808 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
3810 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
3821 if ($line =~ /(\b$Type\s+$Ident)\s*\(\s*\)/) {
3831 if ($line =~ /\btypedef\s/ &&
3832 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
3833 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
3834 $line !~ /\b$typeTypedefs\b/ &&
3835 $line !~ /\b__bitwise\b/) {
3842 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
3867 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
3897 if ($line =~ /\b(?:BUG|BUG_ON)\b/) {
3905 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
3911 if ($line =~ /\bprintk_ratelimit\s*\(/) {
3917 if ($line =~ /\bprintk\s*\(\s*(?!KERN_[A-Z]+\b)/) {
3922 if ($line =~ /\bprintk\s*\(\s*KERN_([A-Z]+)/) {
3932 if ($line =~ /\bpr_warning\s*\(/) {
3941 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
3953 if ($line =~ /\bENOSYS\b/) {
3981 if ($line =~ /^.\s*{/ &&
3985 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
3999 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
4011 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
4082 while ($line =~ /(.*?\s)\[/g) {
4097 while ($line =~ /($Ident)\s+\(/g) {
4099 my $ctx_before = substr($line, 0, $-[1]);
4132 if (!($line=~/\#\s*include/)) {
4443 if ($line =~ /^\+.*\S\s+;\s*$/) {
4453 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
4475 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
4476 $line =~ /do\{/) {
4494 if ($line =~ /}(?!(?:,|;|\)))\S/) {
4504 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
4512 if ($line =~ /\s\]/) {
4522 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
4523 $line !~ /for\s*\(\s+;/) {
4531 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
4532 $line !~ /for\s*\(.*;\s+\)/ &&
4533 $line !~ /:\s+\)/) {
4545 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
4557 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
4595 if ($line=~/^.\s+[A-Za-z\d_]+:(?![0-9]+)/ and
4596 !($line=~/^. [A-Za-z\d_]+:/) and !($line=~/^.\s+default:/)) {
4636 $line =~ /\bif\s*((?:\(\s*){2,})/) {
4640 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
4653 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
4687 if ($line =~ /\b(if|while|for|switch)\(/) {
4698 if ($line =~ /do\s*(?!{)/) {
4721 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
4754 if ($line =~ /
4770 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
4779 if ($line =~ /}\s*if\b/) {
4785 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
4786 $line !~ /\G(?:
4797 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
4801 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4815 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
4827 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4841 while ($line =~ m{($Constant|$Lval)}g) {
4884 if ($line =~ /\#\s*define.*\\\s+$/) {
4918 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
5066 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
5067 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
5068 $line =~ /^\+.*\\$/) {
5079 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
5123 if ($realfile eq 'vmlinux.lds.h' && $line =~ /(?:(?:^|\s)$Ident\s*=|=\s*$Ident(?:\s|$))/) {
5129 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
5192 $line =~ /\b(if|while|for|else)\b/) {
5196 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
5249 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
5266 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
5275 if ($line =~ /^\+\s*$String/ &&
5283 my $extracted_string = get_quoted_string($line, $rawline);
5314 if ($line =~ /^\+.*$String/ &&
5316 get_quoted_string($line, $rawline) =~ /\b$context_function\b/ &&
5317 length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) {
5333 if ($line =~ /$String[A-Z_]/ || $line =~ /[A-Za-z0-9_]$String/) {
5339 if ($line =~ /$String\s*"/) {
5347 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
5376 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
5386 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
5416 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
5433 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
5434 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
5444 if ($line =~ /\bprintk\s*\(\s*KERN_CONT\b|\bpr_cont\s*\(/) {
5451 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
5459 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
5472 if ($line =~ /(\b$InitAttribute\b)/) {
5474 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
5490 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
5504 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
5519 if ($line =~ /\b__read_mostly\b/ &&
5520 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
5530 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
5542 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
5556 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
5564 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
5570 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
5583 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
5594 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
5595 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
5624 if ($line =~ /\b(?:$all_barriers)\s*\(/) {
5635 $line =~ m/\b(?:$underscore_smp_barriers)\s*\(/ &&
5636 $line !~ m/^.\s*\#\s*define\s+(?:$underscore_smp_barriers)\s*\(/) {
5642 if ($line =~ /\bwaitqueue_active\s*\(/) {
5650 if (!$file && $line =~ /\b(smp_|)read_barrier_depends\s*\(/) {
5656 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
5662 if ($line =~ /\b($Type)\s+($Storage)\b/) {
5667 if ($line =~ /\b$Storage\b/ &&
5668 $line !~ /^.\s*$Storage/ &&
5669 $line =~ /^.\s*(.+?)\$Storage\s/ &&
5677 if ($line =~ /\b$Type\s+$Inline\b/ ||
5678 $line =~ /\b$Inline\s+$Storage\b/) {
5685 $line =~ /\b(__inline__|__inline)\b/) {
5696 $line =~ /\b__attribute__\s*\(\s*\(.*\bpacked\b/) {
5703 $line =~ /\b(__attribute__\s*\(\s*\(.*\bpacked|__packed)\b/) {
5710 $line =~ /\b__attribute__\s*\(\s*\(.*aligned/) {
5717 $line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf/) {
5728 $line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*scanf\b/) {
5738 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
5739 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
5740 $line =~ /\b__weak\b/)) {
5748 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
5765 if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
5785 if ($line =~ /\bsizeof\s*\(\s*\&/) {
5791 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
5800 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
5807 my $fmt = get_quoted_string($line, $rawline);
5968 $line =~ /\bsscanf\b/ &&
5982 $line =~ /\bsscanf\b/) {
5999 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
6085 if ($line =~ /\*\s*\)\s*[kv][czm]alloc(_node){0,1}\b/) {
6093 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*([kv][mz]alloc(?:_node)?)\s*\(\s*(sizeof\s*\(\s…
6129 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*\1\s*,/) {
6135 if ($line =~ /\b(kcalloc|kmalloc_array)\s*\(\s*sizeof\b/) {
6141 if ($line =~ /;\s*;\s*$/) {
6151 $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
6162 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(CONFIG_[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:\s*…
6172 if ($line =~ /^.\s*(?:case\s+(?:$Ident|$Constant)\s*|default):/) {
6208 if ($line =~ /\b__FUNCTION__\b/) {
6217 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
6223 if ($line =~ /\byield\s*\(\s*\)/) {
6229 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
6256 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
6262 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
6268 if ($line =~ /^.\s*__initcall\s*\(/) {
6275 if ($line !~ /\bconst\b/ &&
6276 $line =~ /\bstruct\s+($const_structs)\b(?!\s*\{)/) {
6283 if ($line =~ /\bNR_CPUS\b/ &&
6284 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
6285 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
6286 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
6287 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
6288 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/)
6295 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
6302 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
6308 if ($line =~ /\bin_atomic\s*\(/) {
6319 if ($line =~ /mutex_trylock_recursive/) {
6325 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
6326 $line =~ /__lockdep_no_validate__\s*\)/ ) {
6335 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
6336 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
6406 $line =~ /$mode_perms_search/) {
6439 while ($line =~ m{\b($multi_mode_perms_string_search)\b}g) {
6450 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
6451 my $extracted_string = get_quoted_string($line, $rawline);