Lines Matching refs:line

228 		my $line = $_;
230 $line =~ s/\s*\n?$//g;
231 $line =~ s/^\s*//g;
232 $line =~ s/\s+/ /g;
234 next if ($line =~ m/^\s*#/);
235 next if ($line =~ m/^\s*$/);
237 my @words = split(" ", $line);
257 my $line = $_;
258 $line =~ s/\s+$//;
260 if ($line =~ /^\s*\*\*(.+)\*\*$/) {
268 if ($line =~ /^(?:\s{4,}|$)/) {
269 $line =~ s/^\s{4}//;
270 $desc .= $line;
939 my $line = $_;
941 $line =~ s/\s*\n?$//g;
942 $line =~ s/^\s*//g;
944 next if ($line =~ m/^\s*#/);
945 next if ($line =~ m/^\s*$/);
947 my ($suspect, $fix) = split(/\|\|/, $line);
959 my $line = $_;
961 $line =~ s/\s*\n?$//g;
962 $line =~ s/^\s*//g;
964 next if ($line =~ m/^\s*#/);
965 next if ($line =~ m/^\s*$/);
966 next if ($line =~ m/, disabled/i);
968 $line =~ s/,.*$//;
970 my ($suspect, $fix) = split(/->/, $line);
987 my $line = $_;
989 $line =~ s/\s*\n?$//g;
990 $line =~ s/^\s*//g;
992 next if ($line =~ m/^\s*#/);
993 next if ($line =~ m/^\s*$/);
994 if ($line =~ /\s/) {
995 print("$file: '$line' invalid - ignored\n");
1000 $$wordsRef .= $line;
1124 foreach my $line (@lines) {
1125 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
1126 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
1128 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
1130 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
1287 foreach my $line (split(/\n/, $lines)) {
1288 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1549 my ($line) = @_;
1552 $line =~ s/^.//;
1553 $line = expand_tabs($line);
1556 my ($white) = ($line =~ /^(\s*)/);
1558 return (length($line), length($white));
1573 my ($line) = @_;
1583 $res = substr($line, 0, 1);
1585 for ($off = 1; $off < length($line); $off++) {
1586 $c = substr($line, $off, 1);
1590 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
1597 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
1603 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1666 my ($line, $rawline) = @_;
1668 return "" if (!defined($line) || !defined($rawline));
1669 return "" if ($line !~ m/($String)/g);
1675 my $line = $linenr - 1;
1698 for (; $remain > 0; $line++) {
1699 last if (!defined $lines[$line]);
1700 next if ($lines[$line] =~ /^-/);
1703 $blk .= $lines[$line] . "\n";
1705 $line++;
1791 $line++;
1804 $line, $remain + 1, $off - $loff + 1, $level);
1881 my $line;
1890 for ($line = $start; $remain > 0; $line++) {
1891 next if ($rawlines[$line] =~ /^-/);
1894 $blk .= $rawlines[$line];
1897 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1899 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1901 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1905 foreach my $c (split(//, $lines[$line])) {
1921 push(@res, $rawlines[$line]);
1978 my $line = $rawlines[$linenr - 1];
1980 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1983 if ($line =~ m@/\*@) {
1989 $current_comment .= $line . "\n" if ($in_comment);
1990 if ($line =~ m@\*/@) {
2014 my $line;
2016 $line = $rawlines[$offset++];
2017 next if (defined($line) && $line =~ /^-/);
2021 return $line;
2276 my ($possible, $line) = @_;
2296 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
2307 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
2313 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
2318 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
2415 my $line = $old_line; #don't modify the array
2416 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
2418 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
2420 fixup_current_range(\$line, $delta_offset, 0);
2437 push(@lines, $line);
2448 my ($linenr, $line) = @_;
2452 LINE => $line,
2458 my ($linenr, $line) = @_;
2462 LINE => $line,
2575 my ($line) = @_;
2579 my $opens = $line =~ tr/\(/\(/;
2580 my $closes = $line =~ tr/\)/\)/;
2588 my $len = length($line);
2591 my $string = substr($line, $pos);
2594 } elsif (substr($line, $pos, 1) eq '(') {
2601 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2605 my ($line, $rawline) = @_;
2608 for my $i (0 .. (length($line) - 1)) {
2609 if (substr($line, $i, 1) eq "$;") {
2704 my $line;
2707 $line = $rawline;
2764 $line = sanitise_line($rawline);
2766 push(@lines, $line);
2769 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2777 if ($setup_docs && $line =~ /^\+/) {
2778 push(@setup_docs, $line);
2787 foreach my $line (@lines) {
2790 my $sline = $line; #copy of $line
2794 my $raw_comment = get_raw_comment($line, $rawline);
2798 ($line =~ /^ mode change [0-7]+ => [0-7]+ \S+\s*$/ ||
2799 ($line =~ /^rename (?:from|to) \S+\s*$/ ||
2800 $line =~ /^diff --git a\/[\w\/\.\_\-]+ b\/\S+\s*$/))) {
2806 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@(.*)/) {
2833 } elsif ($line =~ /^( |\+|$)/) {
2841 ($prevline, $stashline) = ($stashline, $line);
2858 if ($line =~ /^diff --git.*?(\S+)$/) {
2863 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2931 if ($line !~ /^\s*$/) {
2942 (($line =~ m@^\s+diff\b.*a/([\w/]+)@ &&
2943 $line =~ m@^\s+diff\b.*a/[\w/]+\s+b/$1\b@) ||
2944 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2945 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2952 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2962 if (decode("MIME-Header", $line) =~ /^From:\s*(.*)/) {
2968 $author = encode("utf8", $author) if ($line =~ /=\?utf-8\?/i);
2974 if ($line =~ /^\s*signed-off-by:\s*(.*)/i) {
3013 if ($line =~ /^---$/) {
3020 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
3026 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
3158 my $sig_nospace = $line;
3200 $line =~ /^This reverts commit/) {
3205 $line =~ /((?:(?:BUG: K.|UB)SAN: |Call Trace:|stable\@|syzkaller))/) {
3211 $line =~ /^\s*(fixes:?)\s*(?:commit\s*)?([0-9a-f]{5,40})(?:\s*($balanced_parens))?/i) {
3230 my $tag_space = not ($line =~ /^fixes:? [0-9a-f]{5,40} ($balanced_parens)/i);
3251 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
3257 if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) {
3267 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
3268 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
3270 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/) ||
3271 $line =~ /^(?:\s+\w+:\s+[0-9a-fA-F]+){3,3}/ ||
3272 $line =~ /^\s*\#\d+\s*\[[0-9a-fA-F]+\]\s*\w+ at [0-9a-fA-F]+/) {
3279 length($line) > 75 &&
3280 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
3282 $line =~ /^\s*(?:[\w\.\-\+]*\/)++[\w\.\-\+]+:/ ||
3284 $line =~ /^\s*(?:Fixes:|$link_tags_search|$signature_tags)/i ||
3294 $line =~ /^\s*$/) {
3300 $line =~ /^\s*(\w+:)\s*http/ && $1 !~ /^$link_tags_search$/) {
3312 $line =~ /^\s*(\w+:)\s*(\S+)/) {
3322 if ($in_commit_log && $line =~ /^#/) {
3341 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i &&
3342 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
3343 (($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
3344 …($line =~ /\bcommit\s*$/i && defined($rawlines[$linenr]) && $rawlines[$linenr] =~ /^\s*[0-9a-f]{5,…
3345 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
3346 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
3347 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
3361 my $input = $line;
3362 if ($line =~ /(?:\bcommit\s+[0-9a-f]{5,}|\bcommit\s*$)/i) {
3403 $last_git_commit_id_linenr = $linenr if ($line =~ /\bcommit\s*$/i);
3414 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
3415 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
3416 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
3426 ($line =~ /^new file mode\s*\d+\s*$/) &&
3433 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
3440 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
3478 while ($line =~ m{(?:^|\s)(/\S*)}g) {
3492 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
3512 if ($in_commit_log && $line =~ /(^fixes:|\bcommit)\s+([0-9a-f]{6,40})\b/i) {
3577 next if (!$hunk_line || $line =~ /^-/);
3580 if ($line =~ /^\+.*\015/) {
3617 $line =~ /^\+\s*(?:config|menuconfig|choice)\b/) {
3702 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
3717 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
3718 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
3812 substr($line, @-, @+ - @-) eq "$;" x (@+ - @-)) {
3833 if ($line =~ /^\+/ && $length > $max_line_length) {
3840 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
3841 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3846 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
3847 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
3851 } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
3852 $line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
3862 } elsif ($line =~ /($;[\s$;]*)$/ &&
3863 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3868 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3882 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
3892 $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) {
3974 $line =~ /^(\+| )([ \t]*)/;
3987 $fix && $line =~ /^\+/) {
4002 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
4043 $line =~ /^\+[ \t]*$;/ && #leading comment
4068 $line =~ /^\+/ &&
4069 !($line =~ /^\+\s*$/ ||
4070 $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ ||
4071 $line =~ /^\+\s*MODULE_/i ||
4072 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
4073 $line =~ /^\+[a-z_]*init/ ||
4074 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
4075 $line =~ /^\+\s*DECLARE/ ||
4076 $line =~ /^\+\s*builtin_[\w_]*driver/ ||
4077 $line =~ /^\+\s*__setup/)) {
4087 $line =~ /^\+\s*$/ &&
4149 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
4162 if ($line =~ /^\+.*([\[\(])\s*$/) {
4213 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
4300 if ($line=~/\bswitch\s*\(.*\)/) {
4323 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
4328 if ($line =~ /^\+\t{6,}/) {
4369 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|(?:do|else)\b)/ && $line !~ /…
4470 my $opline = $line; $opline =~ s/^./ /;
4483 next if ($line =~ /^[^\+]/);
4488 if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {
4490 …if ($line =~ /^\+\s*(?:$Declare)?$var\s*=\s*(?:$var|\*\s*\(?\s*&\s*\(?\s*$var\s*\)?\s*\)?)\s*[;,]/…
4498 $line =~ /^\+\s*(?!\#\s*(?!define\s+|if))\s*$Lval/) {
4501 $line =~ /^.\s*($Lval)/;
4509 while ($line =~ m{\b($Declare)\s*(?!char\b|short\b|int\b|long\b)\s*($Ident)?\s*[=,;\[\)\(]}g) {
4534 if ($line =~ /^.\s*$Declare\s*$/) {
4537 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
4545 if ($line =~ /^.\s*$Modifier\s*$/) {
4548 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
4556 if ($line =~ /^.\s*{/ &&
4560 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4566 $fixedline = $line;
4590 if ($line =~ m{//}) {
4594 my $line = $fixed[$fixlinenr];
4595 if ($line =~ /\/\/(.*)$/) {
4602 $line =~ s@//.*@@;
4639 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
4650 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/ &&
4659 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
4696 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
4703 …if ($line =~ /^\+\s*const\s+(char|unsigned\s+char|_*u8|(?:[us]_)?int8_t)\s+\w+\s*\[\s*(?:\w+\s*)?\…
4712 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
4743 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
4750 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
4752 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
4763 if ($line =~ /(\b$Type\s*$Ident)\s*\(\s*\)/) {
4773 if ($line =~ /\btypedef\s/ &&
4774 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
4775 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
4776 $line !~ /\b$typeTypedefs\b/ &&
4777 $line !~ /\b__bitwise\b/) {
4784 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
4809 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
4839 …if ($line =~ /\b(?!AA_|BUILD_|DCCP_|IDA_|KVM_|RWLOCK_|snd_|SPIN_)(?:[a-zA-Z_]*_)?BUG(?:_ON)?(?:_[A…
4847 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
4853 if ($line =~ /\bprintk_ratelimit\s*\(/) {
4859 if ($line =~ /\bprintk\s*\(\s*(?!KERN_[A-Z]+\b)/) {
4865 if ($line =~ /\b(printk(_once|_ratelimited)?)\s*\(\s*KERN_([A-Z]+)/) {
4881 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
4891 if ($line =~ /\b(trace_printk|trace_puts|ftrace_vprintk)\s*\(/) {
4899 if ($line =~ /\bENOSYS\b/) {
4907 if (!$file && $line =~ /\bENOTSUPP\b/) {
4938 if ($line =~ /^.\s*{/ &&
4942 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4956 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
4968 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
5039 while ($line =~ /(.*?\s)\[/g) {
5054 while ($line =~ /($Ident)\s+\(/g) {
5056 my $ctx_before = substr($line, 0, $-[1]);
5089 if (!($line=~/\#\s*include/)) {
5400 if ($line =~ /^\+.*\S\s+;\s*$/) {
5410 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
5432 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
5433 $line =~ /\b(?:else|do)\{/) {
5451 if ($line =~ /}(?!(?:,|;|\)|\}))\S/) {
5461 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
5469 if ($line =~ /\s\]/) {
5479 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
5480 $line !~ /for\s*\(\s+;/) {
5488 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
5489 $line !~ /for\s*\(.*;\s+\)/ &&
5490 $line !~ /:\s+\)/) {
5502 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
5514 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
5608 $line =~ /\bif\s*((?:\(\s*){2,})/) {
5612 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
5625 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
5659 if ($line =~ /\b(if|while|for|switch)\(/) {
5670 if ($line =~ /do\s*(?!{)/) {
5693 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
5762 if ($line =~ /
5778 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
5787 if ($line =~ /}\s*if\b/) {
5793 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
5794 $line !~ /\G(?:
5805 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
5809 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5823 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
5835 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5849 while ($line =~ m{($Constant|$Lval)}g) {
5886 if ($line =~ /\#\s*define.*\\\s+$/) {
5920 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
6070 $line =~ s/(\w+)/$maybe_linker_symbol{$1}++/ge;
6074 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
6075 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
6076 $line =~ /^\+.*\\$/) {
6087 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
6127 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
6190 $line =~ /\b(if|while|for|else)\b/) {
6194 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
6247 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
6264 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
6273 if ($line =~ /^\+\s*$String/ &&
6281 my $extracted_string = get_quoted_string($line, $rawline);
6312 if ($line =~ /^\+.*$String/ &&
6314 get_quoted_string($line, $rawline) =~ /\b$context_function\b/ &&
6315 length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) {
6342 if ($line =~ /$String[A-Z_]/ ||
6343 ($line =~ /([A-Za-z0-9_]+)$String/ && $1 !~ /^[Lu]$/)) {
6347 while ($line =~ /($String)/g) {
6356 if ($line =~ /$String\s*[Lu]?"/) {
6360 while ($line =~ /($String)(?=\s*")/g) {
6370 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
6399 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
6405 if ($line =~ /^.\s*\#\s*if\s+1\b/) {
6414 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
6444 if ($line =~ /\bk[v]?free_rcu\s*\([^(]+\)/) {
6445 if ($line =~ /\bk[v]?free_rcu\s*\([^,]+\)/) {
6453 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
6471 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
6472 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
6482 if ($line =~ /\bprintk\s*\(\s*KERN_CONT\b|\bpr_cont\s*\(/) {
6489 $line =~ /\b$logFunctions\s*\(/ &&
6511 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
6519 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
6532 if ($line =~ /(\b$InitAttribute\b)/) {
6534 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
6550 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
6564 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
6579 if ($line =~ /\b__read_mostly\b/ &&
6580 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
6590 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
6602 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
6616 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
6624 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
6630 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
6643 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
6654 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
6655 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
6683 if ($line =~ /\b(?:$all_barriers)\s*\(/) {
6694 $line =~ m/\b(?:$underscore_smp_barriers)\s*\(/ &&
6695 $line !~ m/^.\s*\#\s*define\s+(?:$underscore_smp_barriers)\s*\(/) {
6701 if ($line =~ /\bwaitqueue_active\s*\(/) {
6709 if ($line =~ /\bdata_race\s*\(/) {
6717 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
6723 if ($line =~ /\b($Type)\s+($Storage)\b/) {
6728 if ($line =~ /\b$Storage\b/ &&
6729 $line !~ /^.\s*$Storage/ &&
6730 $line =~ /^.\s*(.+?)\$Storage\s/ &&
6738 if ($line =~ /\b$Type\s+$Inline\b/ ||
6739 $line =~ /\b$Inline\s+$Storage\b/) {
6746 $line =~ /\b(__inline__|__inline)\b/) {
6822 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
6823 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
6824 $line =~ /\b__weak\b/)) {
6832 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
6849 if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
6869 if ($line =~ /\bsizeof\s*\(\s*\&/) {
6875 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
6884 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
6891 my $fmt = get_quoted_string($line, $rawline);
7019 if ($line =~ /\bstrcpy\s*\(/) {
7025 if ($line =~ /\bstrlcpy\s*\(/) {
7031 if ($line =~ /\bstrncpy\s*\(/) {
7079 $line =~ /\bsscanf\b/ &&
7093 $line =~ /\bsscanf\b/) {
7110 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
7210 if ($line =~ /\*\s*\)\s*$allocFunctions\b/) {
7218 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*((?:kv|k|v)[mz]alloc(?:_node)?)\s*\(\s*(sizeof\…
7256 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*($Lval)\s*,/ &&
7263 if ($line =~ /\b((?:devm_)?((?:k|kv)?(calloc|malloc_array)(?:_node)?))\s*\(\s*sizeof\b/) {
7269 if ($line =~ /;\s*;\s*$/) {
7279 $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
7296 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(${CONFIG_}[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:…
7339 if ($line =~ /\b__FUNCTION__\b/) {
7348 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
7354 if ($line =~ /\byield\s*\(\s*\)/) {
7360 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
7387 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
7393 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
7399 if ($line =~ /^.\s*__initcall\s*\(/) {
7405 if ($line =~ /\bspin_is_locked\(/) {
7411 if ($line =~ /\b($deprecated_apis_search)\b\s*\(/) {
7421 $line !~ /\bconst\b/ &&
7422 $line =~ /\bstruct\s+($const_structs)\b(?!\s*\{)/) {
7430 if ($line =~ /\bNR_CPUS\b/ &&
7431 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
7432 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
7433 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
7434 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
7435 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/ &&
7436 $line !~ /^.\s*\.\w+\s*=\s*.*\bNR_CPUS\b/)
7443 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
7450 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
7456 if ($line =~ /\breturn\s+sysfs_emit\s*\(\s*$FuncArg\s*,\s*($String)/ &&
7477 if ($line =~ /\b(?:(?:un)?likely)\s*\(\s*!?\s*(IS_ERR(?:_OR_NULL|_VALUE)?|WARN)/) {
7483 if ($line =~ /\bin_atomic\s*\(/) {
7510 if ($line =~ /\b($rcu_trace_funcs)\s*\(/) {
7518 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
7519 $line =~ /__lockdep_no_validate__\s*\)/ ) {
7528 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
7529 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
7599 $line =~ /$mode_perms_search/) {
7632 while ($line =~ m{\b($multi_mode_perms_string_search)\b}g) {
7643 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
7644 my $extracted_string = get_quoted_string($line, $rawline);
7668 if ($line =~ /\.extra[12]\s*=\s*&(zero|one|int_max)\b/) {