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;
899 my $line = $_;
901 $line =~ s/\s*\n?$//g;
902 $line =~ s/^\s*//g;
904 next if ($line =~ m/^\s*#/);
905 next if ($line =~ m/^\s*$/);
907 my ($suspect, $fix) = split(/\|\|/, $line);
919 my $line = $_;
921 $line =~ s/\s*\n?$//g;
922 $line =~ s/^\s*//g;
924 next if ($line =~ m/^\s*#/);
925 next if ($line =~ m/^\s*$/);
926 next if ($line =~ m/, disabled/i);
928 $line =~ s/,.*$//;
930 my ($suspect, $fix) = split(/->/, $line);
947 my $line = $_;
949 $line =~ s/\s*\n?$//g;
950 $line =~ s/^\s*//g;
952 next if ($line =~ m/^\s*#/);
953 next if ($line =~ m/^\s*$/);
954 if ($line =~ /\s/) {
955 print("$file: '$line' invalid - ignored\n");
960 $$wordsRef .= $line;
1083 foreach my $line (@lines) {
1084 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
1085 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
1087 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
1089 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
1245 foreach my $line (split(/\n/, $lines)) {
1246 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1507 my ($line) = @_;
1510 $line =~ s/^.//;
1511 $line = expand_tabs($line);
1514 my ($white) = ($line =~ /^(\s*)/);
1516 return (length($line), length($white));
1531 my ($line) = @_;
1541 $res = substr($line, 0, 1);
1543 for ($off = 1; $off < length($line); $off++) {
1544 $c = substr($line, $off, 1);
1548 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
1555 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
1561 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1624 my ($line, $rawline) = @_;
1626 return "" if (!defined($line) || !defined($rawline));
1627 return "" if ($line !~ m/($String)/g);
1633 my $line = $linenr - 1;
1656 for (; $remain > 0; $line++) {
1657 last if (!defined $lines[$line]);
1658 next if ($lines[$line] =~ /^-/);
1661 $blk .= $lines[$line] . "\n";
1663 $line++;
1749 $line++;
1762 $line, $remain + 1, $off - $loff + 1, $level);
1839 my $line;
1848 for ($line = $start; $remain > 0; $line++) {
1849 next if ($rawlines[$line] =~ /^-/);
1852 $blk .= $rawlines[$line];
1855 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1857 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1859 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1863 foreach my $c (split(//, $lines[$line])) {
1879 push(@res, $rawlines[$line]);
1936 my $line = $rawlines[$linenr - 1];
1938 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1941 if ($line =~ m@/\*@) {
1947 $current_comment .= $line . "\n" if ($in_comment);
1948 if ($line =~ m@\*/@) {
1972 my $line;
1974 $line = $rawlines[$offset++];
1975 next if (defined($line) && $line =~ /^-/);
1979 return $line;
2234 my ($possible, $line) = @_;
2254 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
2265 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
2271 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
2276 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
2373 my $line = $old_line; #don't modify the array
2374 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
2376 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
2378 fixup_current_range(\$line, $delta_offset, 0);
2395 push(@lines, $line);
2406 my ($linenr, $line) = @_;
2410 LINE => $line,
2416 my ($linenr, $line) = @_;
2420 LINE => $line,
2533 my ($line) = @_;
2537 my $opens = $line =~ tr/\(/\(/;
2538 my $closes = $line =~ tr/\)/\)/;
2546 my $len = length($line);
2549 my $string = substr($line, $pos);
2552 } elsif (substr($line, $pos, 1) eq '(') {
2559 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2563 my ($line, $rawline) = @_;
2566 for my $i (0 .. (length($line) - 1)) {
2567 if (substr($line, $i, 1) eq "$;") {
2659 my $line;
2662 $line = $rawline;
2719 $line = sanitise_line($rawline);
2721 push(@lines, $line);
2724 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2732 if ($setup_docs && $line =~ /^\+/) {
2733 push(@setup_docs, $line);
2742 foreach my $line (@lines) {
2745 my $sline = $line; #copy of $line
2749 my $raw_comment = get_raw_comment($line, $rawline);
2753 ($line =~ /^ mode change [0-7]+ => [0-7]+ \S+\s*$/ ||
2754 ($line =~ /^rename (?:from|to) \S+\s*$/ ||
2755 $line =~ /^diff --git a\/[\w\/\.\_\-]+ b\/\S+\s*$/))) {
2761 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@(.*)/) {
2788 } elsif ($line =~ /^( |\+|$)/) {
2796 ($prevline, $stashline) = ($stashline, $line);
2813 if ($line =~ /^diff --git.*?(\S+)$/) {
2818 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2886 if ($line !~ /^\s*$/) {
2897 (($line =~ m@^\s+diff\b.*a/([\w/]+)@ &&
2898 $line =~ m@^\s+diff\b.*a/[\w/]+\s+b/$1\b@) ||
2899 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2900 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2907 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2917 if (decode("MIME-Header", $line) =~ /^From:\s*(.*)/) {
2923 $author = encode("utf8", $author) if ($line =~ /=\?utf-8\?/i);
2929 if ($line =~ /^\s*signed-off-by:\s*(.*)/i) {
2968 if ($line =~ /^---$/) {
2975 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
2981 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
3113 my $sig_nospace = $line;
3144 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
3150 if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) {
3160 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
3161 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
3163 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/) ||
3164 $line =~ /^(?:\s+\w+:\s+[0-9a-fA-F]+){3,3}/ ||
3165 $line =~ /^\s*\#\d+\s*\[[0-9a-fA-F]+\]\s*\w+ at [0-9a-fA-F]+/) {
3172 length($line) > 75 &&
3173 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
3175 $line =~ /^\s*(?:[\w\.\-\+]*\/)++[\w\.\-\+]+:/ ||
3177 $line =~ /^\s*(?:Fixes:|Link:|$signature_tags)/i ||
3187 $line =~ /^\s*$/) {
3192 if ($in_commit_log && $line =~ /^#/) {
3211 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i &&
3212 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
3213 (($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
3214 …($line =~ /\bcommit\s*$/i && defined($rawlines[$linenr]) && $rawlines[$linenr] =~ /^\s*[0-9a-f]{5,…
3215 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
3216 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
3217 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
3231 my $input = $line;
3232 if ($line =~ /(?:\bcommit\s+[0-9a-f]{5,}|\bcommit\s*$)/i) {
3273 $last_git_commit_id_linenr = $linenr if ($line =~ /\bcommit\s*$/i);
3278 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
3279 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
3280 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
3290 ($line =~ /^new file mode\s*\d+\s*$/) &&
3297 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
3304 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
3342 while ($line =~ m{(?:^|\s)(/\S*)}g) {
3356 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
3376 if ($in_commit_log && $line =~ /(^fixes:|\bcommit)\s+([0-9a-f]{6,40})\b/i) {
3441 next if (!$hunk_line || $line =~ /^-/);
3444 if ($line =~ /^\+.*\015/) {
3481 $line =~ /^\+\s*(?:config|menuconfig|choice)\b/) {
3566 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
3581 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
3582 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
3671 substr($line, @-, @+ - @-) eq "$;" x (@+ - @-)) {
3692 if ($line =~ /^\+/ && $length > $max_line_length) {
3699 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
3700 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3705 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
3706 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
3710 } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
3711 $line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
3721 } elsif ($line =~ /($;[\s$;]*)$/ &&
3722 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3727 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3741 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
3751 $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) {
3833 $line =~ /^(\+| )([ \t]*)/;
3846 $fix && $line =~ /^\+/) {
3861 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
3902 $line =~ /^\+[ \t]*$;/ && #leading comment
3927 $line =~ /^\+/ &&
3928 !($line =~ /^\+\s*$/ ||
3929 $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ ||
3930 $line =~ /^\+\s*MODULE_/i ||
3931 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
3932 $line =~ /^\+[a-z_]*init/ ||
3933 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
3934 $line =~ /^\+\s*DECLARE/ ||
3935 $line =~ /^\+\s*builtin_[\w_]*driver/ ||
3936 $line =~ /^\+\s*__setup/)) {
3946 $line =~ /^\+\s*$/ &&
4008 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
4021 if ($line =~ /^\+.*([\[\(])\s*$/) {
4072 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
4159 if ($line=~/\bswitch\s*\(.*\)/) {
4182 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
4187 if ($line =~ /^\+\t{6,}/) {
4228 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|(?:do|else)\b)/ && $line !~ /…
4329 my $opline = $line; $opline =~ s/^./ /;
4342 next if ($line =~ /^[^\+]/);
4347 if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {
4349 …if ($line =~ /^\+\s*(?:$Declare)?$var\s*=\s*(?:$var|\*\s*\(?\s*&\s*\(?\s*$var\s*\)?\s*\)?)\s*[;,]/…
4357 $line =~ /^\+\s*(?!\#\s*(?!define\s+|if))\s*$Lval/) {
4360 $line =~ /^.\s*($Lval)/;
4368 while ($line =~ m{\b($Declare)\s*(?!char\b|short\b|int\b|long\b)\s*($Ident)?\s*[=,;\[\)\(]}g) {
4393 if ($line =~ /^.\s*$Declare\s*$/) {
4396 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
4404 if ($line =~ /^.\s*$Modifier\s*$/) {
4407 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
4415 if ($line =~ /^.\s*{/ &&
4419 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4425 $fixedline = $line;
4449 if ($line =~ m{//}) {
4453 my $line = $fixed[$fixlinenr];
4454 if ($line =~ /\/\/(.*)$/) {
4461 $line =~ s@//.*@@;
4498 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
4509 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/ &&
4518 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
4555 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
4562 …if ($line =~ /^\+\s*const\s+(char|unsigned\s+char|_*u8|(?:[us]_)?int8_t)\s+\w+\s*\[\s*(?:\w+\s*)?\…
4571 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
4602 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
4609 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
4611 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
4622 if ($line =~ /(\b$Type\s*$Ident)\s*\(\s*\)/) {
4632 if ($line =~ /\btypedef\s/ &&
4633 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
4634 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
4635 $line !~ /\b$typeTypedefs\b/ &&
4636 $line !~ /\b__bitwise\b/) {
4643 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
4668 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
4698 if ($line =~ /\b(?:BUG|BUG_ON)\b/) {
4706 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
4712 if ($line =~ /\bprintk_ratelimit\s*\(/) {
4718 if ($line =~ /\bprintk\s*\(\s*(?!KERN_[A-Z]+\b)/) {
4724 if ($line =~ /\b(printk(_once|_ratelimited)?)\s*\(\s*KERN_([A-Z]+)/) {
4740 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
4750 if ($line =~ /\b(trace_printk|trace_puts|ftrace_vprintk)\s*\(/) {
4758 if ($line =~ /\bENOSYS\b/) {
4766 if (!$file && $line =~ /\bENOTSUPP\b/) {
4797 if ($line =~ /^.\s*{/ &&
4801 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4815 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
4827 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
4898 while ($line =~ /(.*?\s)\[/g) {
4913 while ($line =~ /($Ident)\s+\(/g) {
4915 my $ctx_before = substr($line, 0, $-[1]);
4948 if (!($line=~/\#\s*include/)) {
5259 if ($line =~ /^\+.*\S\s+;\s*$/) {
5269 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
5291 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
5292 $line =~ /\b(?:else|do)\{/) {
5310 if ($line =~ /}(?!(?:,|;|\)|\}))\S/) {
5320 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
5328 if ($line =~ /\s\]/) {
5338 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
5339 $line !~ /for\s*\(\s+;/) {
5347 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
5348 $line !~ /for\s*\(.*;\s+\)/ &&
5349 $line !~ /:\s+\)/) {
5361 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
5373 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
5467 $line =~ /\bif\s*((?:\(\s*){2,})/) {
5471 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
5484 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
5518 if ($line =~ /\b(if|while|for|switch)\(/) {
5529 if ($line =~ /do\s*(?!{)/) {
5552 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
5621 if ($line =~ /
5637 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
5646 if ($line =~ /}\s*if\b/) {
5652 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
5653 $line !~ /\G(?:
5664 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
5668 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5682 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
5694 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5708 while ($line =~ m{($Constant|$Lval)}g) {
5743 if ($line =~ /\#\s*define.*\\\s+$/) {
5777 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
5927 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
5928 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
5929 $line =~ /^\+.*\\$/) {
5940 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
5980 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
6043 $line =~ /\b(if|while|for|else)\b/) {
6047 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
6100 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
6117 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
6126 if ($line =~ /^\+\s*$String/ &&
6134 my $extracted_string = get_quoted_string($line, $rawline);
6165 if ($line =~ /^\+.*$String/ &&
6167 get_quoted_string($line, $rawline) =~ /\b$context_function\b/ &&
6168 length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) {
6195 if ($line =~ /$String[A-Z_]/ ||
6196 ($line =~ /([A-Za-z0-9_]+)$String/ && $1 !~ /^[Lu]$/)) {
6200 while ($line =~ /($String)/g) {
6209 if ($line =~ /$String\s*[Lu]?"/) {
6213 while ($line =~ /($String)(?=\s*")/g) {
6223 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
6252 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
6258 if ($line =~ /^.\s*\#\s*if\s+1\b/) {
6267 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
6297 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
6315 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
6316 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
6326 if ($line =~ /\bprintk\s*\(\s*KERN_CONT\b|\bpr_cont\s*\(/) {
6333 $line =~ /\b$logFunctions\s*\(/ &&
6355 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
6363 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
6376 if ($line =~ /(\b$InitAttribute\b)/) {
6378 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
6394 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
6408 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
6423 if ($line =~ /\b__read_mostly\b/ &&
6424 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
6434 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
6446 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
6460 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
6468 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
6474 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
6487 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
6498 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
6499 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
6527 if ($line =~ /\b(?:$all_barriers)\s*\(/) {
6538 $line =~ m/\b(?:$underscore_smp_barriers)\s*\(/ &&
6539 $line !~ m/^.\s*\#\s*define\s+(?:$underscore_smp_barriers)\s*\(/) {
6545 if ($line =~ /\bwaitqueue_active\s*\(/) {
6553 if ($line =~ /\bdata_race\s*\(/) {
6561 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
6567 if ($line =~ /\b($Type)\s+($Storage)\b/) {
6572 if ($line =~ /\b$Storage\b/ &&
6573 $line !~ /^.\s*$Storage/ &&
6574 $line =~ /^.\s*(.+?)\$Storage\s/ &&
6582 if ($line =~ /\b$Type\s+$Inline\b/ ||
6583 $line =~ /\b$Inline\s+$Storage\b/) {
6590 $line =~ /\b(__inline__|__inline)\b/) {
6666 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
6667 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
6668 $line =~ /\b__weak\b/)) {
6676 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
6693 if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
6713 if ($line =~ /\bsizeof\s*\(\s*\&/) {
6719 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
6728 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
6735 my $fmt = get_quoted_string($line, $rawline);
6859 if ($line =~ /\bstrlcpy\s*\(/) {
6907 $line =~ /\bsscanf\b/ &&
6921 $line =~ /\bsscanf\b/) {
6938 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
7023 if ($line =~ /\*\s*\)\s*$allocFunctions\b/) {
7031 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*((?:kv|k|v)[mz]alloc(?:_node)?)\s*\(\s*(sizeof\…
7069 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*($Lval)\s*,/ &&
7076 if ($line =~ /\b((?:devm_)?(?:kcalloc|kmalloc_array))\s*\(\s*sizeof\b/) {
7082 if ($line =~ /;\s*;\s*$/) {
7092 $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
7109 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(${CONFIG_}[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:…
7152 if ($line =~ /\b__FUNCTION__\b/) {
7161 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
7167 if ($line =~ /\byield\s*\(\s*\)/) {
7173 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
7200 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
7206 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
7212 if ($line =~ /^.\s*__initcall\s*\(/) {
7218 if ($line =~ /\bspin_is_locked\(/) {
7224 if ($line =~ /\b($deprecated_apis_search)\b\s*\(/) {
7234 $line !~ /\bconst\b/ &&
7235 $line =~ /\bstruct\s+($const_structs)\b(?!\s*\{)/) {
7243 if ($line =~ /\bNR_CPUS\b/ &&
7244 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
7245 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
7246 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
7247 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
7248 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/ &&
7249 $line !~ /^.\s*\.\w+\s*=\s*.*\bNR_CPUS\b/)
7256 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
7263 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
7269 if ($line =~ /\breturn\s+sysfs_emit\s*\(\s*$FuncArg\s*,\s*($String)/ &&
7280 if ($line =~ /\b(?:(?:un)?likely)\s*\(\s*!?\s*(IS_ERR(?:_OR_NULL|_VALUE)?|WARN)/) {
7286 if ($line =~ /\bin_atomic\s*\(/) {
7297 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
7298 $line =~ /__lockdep_no_validate__\s*\)/ ) {
7307 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
7308 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
7378 $line =~ /$mode_perms_search/) {
7411 while ($line =~ m{\b($multi_mode_perms_string_search)\b}g) {
7422 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
7423 my $extracted_string = get_quoted_string($line, $rawline);
7447 if ($line =~ /\.extra[12]\s*=\s*&(zero|one|int_max)\b/) {