Lines Matching refs:line
116 my $line = $_;
118 $line =~ s/\s*\n?$//g;
119 $line =~ s/^\s*//g;
120 $line =~ s/\s+/ /g;
122 next if ($line =~ m/^\s*#/);
123 next if ($line =~ m/^\s*$/);
125 my @words = split(" ", $line);
486 my $line = $_;
488 $line =~ s/\s*\n?$//g;
489 $line =~ s/^\s*//g;
491 next if ($line =~ m/^\s*#/);
492 next if ($line =~ m/^\s*$/);
494 my ($suspect, $fix) = split(/\|\|/, $line);
506 my $line = $_;
508 $line =~ s/\s*\n?$//g;
509 $line =~ s/^\s*//g;
511 next if ($line =~ m/^\s*#/);
512 next if ($line =~ m/^\s*$/);
513 next if ($line =~ m/, disabled/i);
515 $line =~ s/,.*$//;
517 my ($suspect, $fix) = split(/->/, $line);
623 foreach my $line (@lines) {
624 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
625 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
627 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
629 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
934 my ($line) = @_;
937 $line =~ s/^.//;
938 $line = expand_tabs($line);
941 my ($white) = ($line =~ /^(\s*)/);
943 return (length($line), length($white));
958 my ($line) = @_;
968 $res = substr($line, 0, 1);
970 for ($off = 1; $off < length($line); $off++) {
971 $c = substr($line, $off, 1);
975 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
982 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
988 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1046 my ($line, $rawline) = @_;
1048 return "" if ($line !~ m/($String)/g);
1054 my $line = $linenr - 1;
1077 for (; $remain > 0; $line++) {
1078 last if (!defined $lines[$line]);
1079 next if ($lines[$line] =~ /^-/);
1082 $blk .= $lines[$line] . "\n";
1084 $line++;
1170 $line++;
1183 $line, $remain + 1, $off - $loff + 1, $level);
1260 my $line;
1269 for ($line = $start; $remain > 0; $line++) {
1270 next if ($rawlines[$line] =~ /^-/);
1273 $blk .= $rawlines[$line];
1276 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1278 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1280 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1284 foreach my $c (split(//, $lines[$line])) {
1300 push(@res, $rawlines[$line]);
1349 my $line = $rawlines[$linenr - 1];
1351 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1354 if ($line =~ m@/\*@) {
1360 $current_comment .= $line . "\n" if ($in_comment);
1361 if ($line =~ m@\*/@) {
1385 my $line;
1387 $line = $rawlines[$offset++];
1388 next if (defined($line) && $line =~ /^-/);
1392 return $line;
1625 my ($possible, $line) = @_;
1645 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
1656 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
1662 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
1667 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
1753 my $line = $old_line; #don't modify the array
1754 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
1756 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
1758 fixup_current_range(\$line, $delta_offset, 0);
1775 push(@lines, $line);
1786 my ($linenr, $line) = @_;
1790 LINE => $line,
1796 my ($linenr, $line) = @_;
1800 LINE => $line,
1913 my ($line) = @_;
1917 my $opens = $line =~ tr/\(/\(/;
1918 my $closes = $line =~ tr/\)/\)/;
1926 my $len = length($line);
1929 my $string = substr($line, $pos);
1932 } elsif (substr($line, $pos, 1) eq '(') {
1939 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2005 my $line;
2008 $line = $rawline;
2065 $line = sanitise_line($rawline);
2067 push(@lines, $line);
2070 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2078 if ($setup_docs && $line =~ /^\+/) {
2079 push(@setup_docs, $line);
2088 foreach my $line (@lines) {
2091 my $sline = $line; #copy of $line
2098 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@/) {
2119 } elsif ($line =~ /^( |\+|$)/) {
2127 ($prevline, $stashline) = ($stashline, $line);
2144 if ($line =~ /^diff --git.*?(\S+)$/) {
2149 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2198 (($line =~ m@^\s+diff\b.*a/[\w/]+@ &&
2199 $line =~ m@^\s+diff\b.*a/([\w/]+)\s+b/$1\b@) ||
2200 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2201 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2208 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2218 if ($line =~ /^\s*signed-off-by:/i) {
2225 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
2231 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
2288 my $sig_nospace = $line;
2301 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
2307 if ($line =~ /^\s*cc:\s*.*<?\bstable\@kernel\.org\b>?.*$/i) {
2313 if ($in_commit_log && $line =~ /^\s*change-id:/i) {
2320 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
2321 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
2323 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/)) {
2330 length($line) > 75 &&
2331 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
2333 $line =~ /^\s*(?:[\w\.\-]+\/)++[\w\.\-]+:/ ||
2335 $line =~ /^\s*(?:Fixes:|Link:)/i ||
2345 $line =~ /^\s*$/) {
2351 ($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
2352 ($line =~ /\b[0-9a-f]{12,40}\b/i &&
2353 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
2354 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
2367 if ($line =~ /\b(c)ommit\s+([0-9a-f]{5,})\b/i) {
2370 } elsif ($line =~ /\b([0-9a-f]{12,40})\b/i) {
2374 $short = 0 if ($line =~ /\bcommit\s+[0-9a-f]{12,40}/i);
2375 $long = 1 if ($line =~ /\bcommit\s+[0-9a-f]{41,}/i);
2376 $space = 0 if ($line =~ /\bcommit [0-9a-f]/i);
2377 $case = 0 if ($line =~ /\b[Cc]ommit\s+[0-9a-f]{5,40}[^A-F]/);
2378 if ($line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("([^"]+)"\)/i) {
2381 } elsif ($line =~ /\bcommit\s+[0-9a-f]{5,}\s*$/i &&
2386 } elsif ($line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("[^"]+$/i &&
2389 $line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("([^"]+)$/i;
2407 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
2408 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
2409 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
2417 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
2425 while ($line =~ m{(?:^|\s)(/\S*)}g) {
2438 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
2475 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
2492 next if (!$hunk_line || $line =~ /^-/);
2495 if ($line =~ /^\+.*\015/) {
2528 $line =~ /^\+\s*config\s+/) {
2568 $line =~ /.\s*depends on\s+.*\bEXPERIMENTAL\b/) {
2575 $line =~ /^\+\s*\bboolean\b/) {
2581 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
2596 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
2597 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
2643 if ($line =~ /^\+/ && $length > $max_line_length) {
2650 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
2651 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2656 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
2657 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
2663 } elsif ($line =~ /($;[\s$;]*)$/ &&
2664 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2669 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2681 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
2688 if ($line =~ /\.[lL][[:space:]]*=.*&[[:space:]]*0x[fF][fF][fF][fF]/) {
2689 my $herevet = "$here\n" . cat_vet($line) . "\n";
2693 if ($line =~ /\.[hH][[:space:]]*=.*>>[[:space:]]*16/) {
2694 my $herevet = "$here\n" . cat_vet($line) . "\n";
2744 $line =~ /^(\+| )([ \t]*)/;
2757 $fix && $line =~ /^\+/) {
2772 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
2814 $line =~ /^\+/ &&
2815 !($line =~ /^\+\s*$/ ||
2816 $line =~ /^\+\s*EXPORT_SYMBOL/ ||
2817 $line =~ /^\+\s*MODULE_/i ||
2818 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
2819 $line =~ /^\+[a-z_]*init/ ||
2820 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
2821 $line =~ /^\+\s*DECLARE/ ||
2822 $line =~ /^\+\s*__setup/)) {
2832 $line =~ /^\+\s*$/ &&
2889 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
2926 if ($line =~ /^\+\s*\#\s*if.*\bCONFIG_EXPERIMENTAL\b/) {
2938 if ($line =~ /__builtin_bfin_csync/) {
2939 my $herevet = "$here\n" . cat_vet($line) . "\n";
2943 if ($line =~ /__builtin_bfin_ssync/) {
2944 my $herevet = "$here\n" . cat_vet($line) . "\n";
2950 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
3037 if ($line=~/\bswitch\s*\(.*\)/) {
3060 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
3065 if ($line =~ /^\+\t{6,}/) {
3106 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b)/ && $line !~ /^.\s*#/ &…
3205 my $opline = $line; $opline =~ s/^./ /;
3218 next if ($line =~ /^[^\+]/);
3222 if ($line =~ /^.\s*$Declare\s*$/) {
3225 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
3233 if ($line =~ /^.\s*$Modifier\s*$/) {
3236 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
3244 if ($line =~ /^.\s*{/ &&
3248 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
3254 $fixedline = $line;
3278 if ($line =~ m{//}) {
3282 my $line = $fixed[$fixlinenr];
3283 if ($line =~ /\/\/(.*)$/) {
3290 $line =~ s@//.*@@;
3327 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/ ||
3328 $line =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) {
3339 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/) {
3347 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
3364 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
3371 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
3390 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
3397 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
3399 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
3410 if ($line =~ /(\b$Type\s+$Ident)\s*\(\s*\)/) {
3419 if ($line =~ /\bDEFINE_PCI_DEVICE_TABLE\s*\(\s*(\w+)\s*\)\s*=/) {
3429 if ($line =~ /\btypedef\s/ &&
3430 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
3431 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
3432 $line !~ /\b$typeTypedefs\b/ &&
3433 $line !~ /\b__bitwise(?:__|)\b/) {
3440 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
3465 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
3495 if ($line =~ /\b(?:BUG|BUG_ON)\b/) {
3503 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
3509 if ($line =~ /\bprintk_ratelimit\s*\(/) {
3519 if ($line =~ /\bprintk\((?!KERN_)\s*"/) {
3538 if ($line =~ /\bprintk\s*\(\s*KERN_([A-Z]+)/) {
3548 if ($line =~ /\bpr_warning\s*\(/) {
3557 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
3569 if ($line =~ /\bENOSYS\b/) {
3576 if (($line=~/$Type\s*$Ident\(.*\).*\s*{/) and
3577 !($line=~/\#\s*define.*do\s\{/) and !($line=~/}/)) {
3595 if ($line =~ /^.\s*{/ &&
3599 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
3613 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
3625 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
3696 while ($line =~ /(.*?\s)\[/g) {
3711 while ($line =~ /($Ident)\s+\(/g) {
3713 my $ctx_before = substr($line, 0, $-[1]);
3746 if (!($line=~/\#\s*include/)) {
4057 if ($line =~ /^\+.*\S\s+;\s*$/) {
4067 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
4089 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\){/) ||
4090 $line =~ /do\{/) {
4108 if ($line =~ /}(?!(?:,|;|\)))\S/) {
4118 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
4126 if ($line =~ /\s\]/) {
4136 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
4137 $line !~ /for\s*\(\s+;/) {
4145 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
4146 $line !~ /for\s*\(.*;\s+\)/ &&
4147 $line !~ /:\s+\)/) {
4159 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
4171 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
4183 if ($line=~/^.\s+[A-Za-z\d_]+:(?![0-9]+)/ and
4184 !($line=~/^. [A-Za-z\d_]+:/) and !($line=~/^.\s+default:/)) {
4224 $line =~ /\bif\s*((?:\(\s*){2,})/) {
4228 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
4241 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
4275 if ($line =~ /\b(if|while|for|switch)\(/) {
4286 if ($line =~ /do\s*(?!{)/) {
4309 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
4342 if ($line =~ /
4358 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
4367 if ($line =~ /}\s*if\b/) {
4373 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
4374 $line !~ /\G(?:
4385 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
4389 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4403 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
4415 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4429 while ($line =~ m{($Constant|$Lval)}g) {
4472 if ($line =~ /\#\s*define.*\\\s+$/) {
4506 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
4603 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
4604 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
4605 $line =~ /^\+.*\\$/) {
4616 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
4668 if ($realfile eq 'vmlinux.lds.h' && $line =~ /(?:(?:^|\s)$Ident\s*=|=\s*$Ident(?:\s|$))/) {
4674 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
4737 $line =~ /\b(if|while|for|else)\b/) {
4741 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
4792 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
4809 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
4818 if ($line =~ /^\+\s*$String/ &&
4826 my $extracted_string = get_quoted_string($line, $rawline);
4864 if ($line =~ /$String[A-Z_]/ || $line =~ /[A-Za-z0-9_]$String/) {
4870 if ($line =~ /$String\s*"/) {
4877 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
4898 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
4908 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
4938 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
4955 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
4956 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
4967 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
4975 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
4988 if ($line =~ /(\b$InitAttribute\b)/) {
4990 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
5006 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
5020 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
5035 if ($line =~ /\b__read_mostly\b/ &&
5036 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
5046 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
5058 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
5072 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
5080 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
5086 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
5099 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
5110 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
5111 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
5119 …if ($line =~ /\b(mb|rmb|wmb|read_barrier_depends|smp_mb|smp_rmb|smp_wmb|smp_read_barrier_depends)\…
5127 if ($line =~ /\bwaitqueue_active\s*\(/) {
5145 if ($line =~ /\b(synchronize_rcu_expedited|synchronize_sched_expedited)\(/) {
5152 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
5158 if ($line =~ /\b$Storage\b/ && $line !~ /^.\s*$Storage\b/) {
5165 if ($line =~ /\b$Type\s+$Inline\b/ ||
5166 $line =~ /\b$Inline\s+$Storage\b/) {
5173 $line =~ /\b(__inline__|__inline)\b/) {
5184 $line =~ /\b__attribute__\s*\(\s*\(.*\bpacked\b/) {
5191 $line =~ /\b__attribute__\s*\(\s*\(.*aligned/) {
5198 $line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf/) {
5209 $line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*scanf\b/) {
5219 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
5220 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
5221 $line =~ /\b__weak\b/)) {
5228 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
5245 if ($line =~ /\bsizeof\s*\(\s*\&/) {
5251 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
5260 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
5267 my $fmt = get_quoted_string($line, $rawline);
5381 $line =~ /\bsscanf\b/ &&
5398 $line =~ /\bsscanf\b/) {
5418 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
5467 if ($line =~ /\*\s*\)\s*[kv][czm]alloc(_node){0,1}\b/) {
5475 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*([kv][mz]alloc(?:_node)?)\s*\(\s*(sizeof\s*\(\s…
5482 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*(k[mz]alloc)\s*\(\s*($FuncArg)\s*\*\s*($FuncArg…
5507 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*\1\s*,/) {
5513 if ($line =~ /\b(kcalloc|kmalloc_array)\s*\(\s*sizeof\b/) {
5519 if ($line =~ /;\s*;\s*$/) {
5528 if ($line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
5539 if ($line =~ /^.\s*(?:case\s+(?:$Ident|$Constant)\s*|default):/) {
5578 if ($line =~ /\b__FUNCTION__\b/) {
5587 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
5593 if ($line =~ /\byield\s*\(\s*\)/) {
5599 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
5626 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
5632 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
5638 if ($line =~ /^.\s*__initcall\s*\(/) {
5684 if ($line !~ /\bconst\b/ &&
5685 $line =~ /\bstruct\s+($const_structs)\b/) {
5693 if ($line =~ /\bNR_CPUS\b/ &&
5694 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
5695 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
5696 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
5697 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
5698 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/)
5705 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
5712 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
5718 if ($line =~ /\bin_atomic\s*\(/) {
5729 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
5730 $line =~ /__lockdep_no_validate__\s*\)/ ) {
5739 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
5740 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
5748 $line =~ /$mode_perms_search/) {
5759 if ($line =~ /$test/) {
5777 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
5778 my $extracted_string = get_quoted_string($line, $rawline);