Lines Matching refs:line
226 my $line = $_;
228 $line =~ s/\s*\n?$//g;
229 $line =~ s/^\s*//g;
230 $line =~ s/\s+/ /g;
232 next if ($line =~ m/^\s*#/);
233 next if ($line =~ m/^\s*$/);
235 my @words = split(" ", $line);
255 my $line = $_;
256 $line =~ s/\s+$//;
258 if ($line =~ /^\s*\*\*(.+)\*\*$/) {
266 if ($line =~ /^(?:\s{4,}|$)/) {
267 $line =~ s/^\s{4}//;
268 $desc .= $line;
936 my $line = $_;
938 $line =~ s/\s*\n?$//g;
939 $line =~ s/^\s*//g;
941 next if ($line =~ m/^\s*#/);
942 next if ($line =~ m/^\s*$/);
944 my ($suspect, $fix) = split(/\|\|/, $line);
956 my $line = $_;
958 $line =~ s/\s*\n?$//g;
959 $line =~ s/^\s*//g;
961 next if ($line =~ m/^\s*#/);
962 next if ($line =~ m/^\s*$/);
963 next if ($line =~ m/, disabled/i);
965 $line =~ s/,.*$//;
967 my ($suspect, $fix) = split(/->/, $line);
984 my $line = $_;
986 $line =~ s/\s*\n?$//g;
987 $line =~ s/^\s*//g;
989 next if ($line =~ m/^\s*#/);
990 next if ($line =~ m/^\s*$/);
991 if ($line =~ /\s/) {
992 print("$file: '$line' invalid - ignored\n");
997 $$wordsRef .= $line;
1121 foreach my $line (@lines) {
1122 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
1123 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
1125 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
1127 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
1283 foreach my $line (split(/\n/, $lines)) {
1284 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1545 my ($line) = @_;
1548 $line =~ s/^.//;
1549 $line = expand_tabs($line);
1552 my ($white) = ($line =~ /^(\s*)/);
1554 return (length($line), length($white));
1569 my ($line) = @_;
1579 $res = substr($line, 0, 1);
1581 for ($off = 1; $off < length($line); $off++) {
1582 $c = substr($line, $off, 1);
1586 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
1593 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
1599 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1662 my ($line, $rawline) = @_;
1664 return "" if (!defined($line) || !defined($rawline));
1665 return "" if ($line !~ m/($String)/g);
1671 my $line = $linenr - 1;
1694 for (; $remain > 0; $line++) {
1695 last if (!defined $lines[$line]);
1696 next if ($lines[$line] =~ /^-/);
1699 $blk .= $lines[$line] . "\n";
1701 $line++;
1787 $line++;
1800 $line, $remain + 1, $off - $loff + 1, $level);
1877 my $line;
1886 for ($line = $start; $remain > 0; $line++) {
1887 next if ($rawlines[$line] =~ /^-/);
1890 $blk .= $rawlines[$line];
1893 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1895 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1897 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1901 foreach my $c (split(//, $lines[$line])) {
1917 push(@res, $rawlines[$line]);
1974 my $line = $rawlines[$linenr - 1];
1976 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1979 if ($line =~ m@/\*@) {
1985 $current_comment .= $line . "\n" if ($in_comment);
1986 if ($line =~ m@\*/@) {
2010 my $line;
2012 $line = $rawlines[$offset++];
2013 next if (defined($line) && $line =~ /^-/);
2017 return $line;
2272 my ($possible, $line) = @_;
2292 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
2303 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
2309 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
2314 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
2411 my $line = $old_line; #don't modify the array
2412 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
2414 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
2416 fixup_current_range(\$line, $delta_offset, 0);
2433 push(@lines, $line);
2444 my ($linenr, $line) = @_;
2448 LINE => $line,
2454 my ($linenr, $line) = @_;
2458 LINE => $line,
2571 my ($line) = @_;
2575 my $opens = $line =~ tr/\(/\(/;
2576 my $closes = $line =~ tr/\)/\)/;
2584 my $len = length($line);
2587 my $string = substr($line, $pos);
2590 } elsif (substr($line, $pos, 1) eq '(') {
2597 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2601 my ($line, $rawline) = @_;
2604 for my $i (0 .. (length($line) - 1)) {
2605 if (substr($line, $i, 1) eq "$;") {
2697 my $line;
2700 $line = $rawline;
2757 $line = sanitise_line($rawline);
2759 push(@lines, $line);
2762 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2770 if ($setup_docs && $line =~ /^\+/) {
2771 push(@setup_docs, $line);
2780 foreach my $line (@lines) {
2783 my $sline = $line; #copy of $line
2787 my $raw_comment = get_raw_comment($line, $rawline);
2791 ($line =~ /^ mode change [0-7]+ => [0-7]+ \S+\s*$/ ||
2792 ($line =~ /^rename (?:from|to) \S+\s*$/ ||
2793 $line =~ /^diff --git a\/[\w\/\.\_\-]+ b\/\S+\s*$/))) {
2799 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@(.*)/) {
2826 } elsif ($line =~ /^( |\+|$)/) {
2834 ($prevline, $stashline) = ($stashline, $line);
2851 if ($line =~ /^diff --git.*?(\S+)$/) {
2856 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2924 if ($line !~ /^\s*$/) {
2935 (($line =~ m@^\s+diff\b.*a/([\w/]+)@ &&
2936 $line =~ m@^\s+diff\b.*a/[\w/]+\s+b/$1\b@) ||
2937 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2938 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2945 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2955 if (decode("MIME-Header", $line) =~ /^From:\s*(.*)/) {
2961 $author = encode("utf8", $author) if ($line =~ /=\?utf-8\?/i);
2967 if ($line =~ /^\s*signed-off-by:\s*(.*)/i) {
3006 if ($line =~ /^---$/) {
3013 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
3019 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
3151 my $sig_nospace = $line;
3194 $line =~ /^\s*fixes:?\s*(?:commit\s*)?[0-9a-f]{5,}\b/i) {
3204 if ($line =~ /(\s*fixes:?)\s+([0-9a-f]{5,})\s+($balanced_parens)/i) {
3210 $tag_space = 0 if ($line =~ /^fixes:? [0-9a-f]{5,} ($balanced_parens)/i);
3238 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
3244 if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) {
3254 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
3255 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
3257 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/) ||
3258 $line =~ /^(?:\s+\w+:\s+[0-9a-fA-F]+){3,3}/ ||
3259 $line =~ /^\s*\#\d+\s*\[[0-9a-fA-F]+\]\s*\w+ at [0-9a-fA-F]+/) {
3266 length($line) > 75 &&
3267 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
3269 $line =~ /^\s*(?:[\w\.\-\+]*\/)++[\w\.\-\+]+:/ ||
3271 $line =~ /^\s*(?:Fixes:|$link_tags_search|$signature_tags)/i ||
3281 $line =~ /^\s*$/) {
3287 $line =~ /^\s*(\w+:)\s*http/ && $1 !~ /^$link_tags_search$/) {
3299 $line =~ /^\s*(\w+:)\s*(\S+)/) {
3309 if ($in_commit_log && $line =~ /^#/) {
3328 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i &&
3329 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
3330 (($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
3331 …($line =~ /\bcommit\s*$/i && defined($rawlines[$linenr]) && $rawlines[$linenr] =~ /^\s*[0-9a-f]{5,…
3332 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
3333 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
3334 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
3348 my $input = $line;
3349 if ($line =~ /(?:\bcommit\s+[0-9a-f]{5,}|\bcommit\s*$)/i) {
3390 $last_git_commit_id_linenr = $linenr if ($line =~ /\bcommit\s*$/i);
3401 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
3402 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
3403 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
3413 ($line =~ /^new file mode\s*\d+\s*$/) &&
3420 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
3427 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
3465 while ($line =~ m{(?:^|\s)(/\S*)}g) {
3479 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
3499 if ($in_commit_log && $line =~ /(^fixes:|\bcommit)\s+([0-9a-f]{6,40})\b/i) {
3564 next if (!$hunk_line || $line =~ /^-/);
3567 if ($line =~ /^\+.*\015/) {
3604 $line =~ /^\+\s*(?:config|menuconfig|choice)\b/) {
3689 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
3704 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
3705 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
3799 substr($line, @-, @+ - @-) eq "$;" x (@+ - @-)) {
3820 if ($line =~ /^\+/ && $length > $max_line_length) {
3827 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
3828 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3833 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
3834 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
3838 } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
3839 $line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
3849 } elsif ($line =~ /($;[\s$;]*)$/ &&
3850 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3855 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3869 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
3879 $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) {
3961 $line =~ /^(\+| )([ \t]*)/;
3974 $fix && $line =~ /^\+/) {
3989 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
4030 $line =~ /^\+[ \t]*$;/ && #leading comment
4055 $line =~ /^\+/ &&
4056 !($line =~ /^\+\s*$/ ||
4057 $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ ||
4058 $line =~ /^\+\s*MODULE_/i ||
4059 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
4060 $line =~ /^\+[a-z_]*init/ ||
4061 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
4062 $line =~ /^\+\s*DECLARE/ ||
4063 $line =~ /^\+\s*builtin_[\w_]*driver/ ||
4064 $line =~ /^\+\s*__setup/)) {
4074 $line =~ /^\+\s*$/ &&
4136 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
4149 if ($line =~ /^\+.*([\[\(])\s*$/) {
4200 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
4287 if ($line=~/\bswitch\s*\(.*\)/) {
4310 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
4315 if ($line =~ /^\+\t{6,}/) {
4356 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|(?:do|else)\b)/ && $line !~ /…
4457 my $opline = $line; $opline =~ s/^./ /;
4470 next if ($line =~ /^[^\+]/);
4475 if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {
4477 …if ($line =~ /^\+\s*(?:$Declare)?$var\s*=\s*(?:$var|\*\s*\(?\s*&\s*\(?\s*$var\s*\)?\s*\)?)\s*[;,]/…
4485 $line =~ /^\+\s*(?!\#\s*(?!define\s+|if))\s*$Lval/) {
4488 $line =~ /^.\s*($Lval)/;
4496 while ($line =~ m{\b($Declare)\s*(?!char\b|short\b|int\b|long\b)\s*($Ident)?\s*[=,;\[\)\(]}g) {
4521 if ($line =~ /^.\s*$Declare\s*$/) {
4524 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
4532 if ($line =~ /^.\s*$Modifier\s*$/) {
4535 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
4543 if ($line =~ /^.\s*{/ &&
4547 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4553 $fixedline = $line;
4577 if ($line =~ m{//}) {
4581 my $line = $fixed[$fixlinenr];
4582 if ($line =~ /\/\/(.*)$/) {
4589 $line =~ s@//.*@@;
4626 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
4637 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/ &&
4646 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
4683 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
4690 …if ($line =~ /^\+\s*const\s+(char|unsigned\s+char|_*u8|(?:[us]_)?int8_t)\s+\w+\s*\[\s*(?:\w+\s*)?\…
4699 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
4730 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
4737 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
4739 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
4750 if ($line =~ /(\b$Type\s*$Ident)\s*\(\s*\)/) {
4760 if ($line =~ /\btypedef\s/ &&
4761 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
4762 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
4763 $line !~ /\b$typeTypedefs\b/ &&
4764 $line !~ /\b__bitwise\b/) {
4771 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
4796 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
4826 …if ($line =~ /\b(?!AA_|BUILD_|DCCP_|IDA_|KVM_|RWLOCK_|snd_|SPIN_)(?:[a-zA-Z_]*_)?BUG(?:_ON)?(?:_[A…
4834 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
4840 if ($line =~ /\bprintk_ratelimit\s*\(/) {
4846 if ($line =~ /\bprintk\s*\(\s*(?!KERN_[A-Z]+\b)/) {
4852 if ($line =~ /\b(printk(_once|_ratelimited)?)\s*\(\s*KERN_([A-Z]+)/) {
4868 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
4878 if ($line =~ /\b(trace_printk|trace_puts|ftrace_vprintk)\s*\(/) {
4886 if ($line =~ /\bENOSYS\b/) {
4894 if (!$file && $line =~ /\bENOTSUPP\b/) {
4925 if ($line =~ /^.\s*{/ &&
4929 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4943 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
4955 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
5026 while ($line =~ /(.*?\s)\[/g) {
5041 while ($line =~ /($Ident)\s+\(/g) {
5043 my $ctx_before = substr($line, 0, $-[1]);
5076 if (!($line=~/\#\s*include/)) {
5387 if ($line =~ /^\+.*\S\s+;\s*$/) {
5397 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
5419 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
5420 $line =~ /\b(?:else|do)\{/) {
5438 if ($line =~ /}(?!(?:,|;|\)|\}))\S/) {
5448 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
5456 if ($line =~ /\s\]/) {
5466 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
5467 $line !~ /for\s*\(\s+;/) {
5475 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
5476 $line !~ /for\s*\(.*;\s+\)/ &&
5477 $line !~ /:\s+\)/) {
5489 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
5501 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
5595 $line =~ /\bif\s*((?:\(\s*){2,})/) {
5599 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
5612 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
5646 if ($line =~ /\b(if|while|for|switch)\(/) {
5657 if ($line =~ /do\s*(?!{)/) {
5680 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
5749 if ($line =~ /
5765 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
5774 if ($line =~ /}\s*if\b/) {
5780 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
5781 $line !~ /\G(?:
5792 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
5796 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5810 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
5822 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5836 while ($line =~ m{($Constant|$Lval)}g) {
5873 if ($line =~ /\#\s*define.*\\\s+$/) {
5907 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
6057 $line =~ s/(\w+)/$maybe_linker_symbol{$1}++/ge;
6061 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
6062 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
6063 $line =~ /^\+.*\\$/) {
6074 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
6114 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
6177 $line =~ /\b(if|while|for|else)\b/) {
6181 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
6234 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
6251 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
6260 if ($line =~ /^\+\s*$String/ &&
6268 my $extracted_string = get_quoted_string($line, $rawline);
6299 if ($line =~ /^\+.*$String/ &&
6301 get_quoted_string($line, $rawline) =~ /\b$context_function\b/ &&
6302 length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) {
6329 if ($line =~ /$String[A-Z_]/ ||
6330 ($line =~ /([A-Za-z0-9_]+)$String/ && $1 !~ /^[Lu]$/)) {
6334 while ($line =~ /($String)/g) {
6343 if ($line =~ /$String\s*[Lu]?"/) {
6347 while ($line =~ /($String)(?=\s*")/g) {
6357 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
6386 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
6392 if ($line =~ /^.\s*\#\s*if\s+1\b/) {
6401 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
6431 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
6449 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
6450 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
6460 if ($line =~ /\bprintk\s*\(\s*KERN_CONT\b|\bpr_cont\s*\(/) {
6467 $line =~ /\b$logFunctions\s*\(/ &&
6489 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
6497 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
6510 if ($line =~ /(\b$InitAttribute\b)/) {
6512 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
6528 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
6542 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
6557 if ($line =~ /\b__read_mostly\b/ &&
6558 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
6568 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
6580 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
6594 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
6602 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
6608 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
6621 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
6632 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
6633 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
6661 if ($line =~ /\b(?:$all_barriers)\s*\(/) {
6672 $line =~ m/\b(?:$underscore_smp_barriers)\s*\(/ &&
6673 $line !~ m/^.\s*\#\s*define\s+(?:$underscore_smp_barriers)\s*\(/) {
6679 if ($line =~ /\bwaitqueue_active\s*\(/) {
6687 if ($line =~ /\bdata_race\s*\(/) {
6695 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
6701 if ($line =~ /\b($Type)\s+($Storage)\b/) {
6706 if ($line =~ /\b$Storage\b/ &&
6707 $line !~ /^.\s*$Storage/ &&
6708 $line =~ /^.\s*(.+?)\$Storage\s/ &&
6716 if ($line =~ /\b$Type\s+$Inline\b/ ||
6717 $line =~ /\b$Inline\s+$Storage\b/) {
6724 $line =~ /\b(__inline__|__inline)\b/) {
6800 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
6801 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
6802 $line =~ /\b__weak\b/)) {
6810 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
6827 if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
6847 if ($line =~ /\bsizeof\s*\(\s*\&/) {
6853 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
6862 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
6869 my $fmt = get_quoted_string($line, $rawline);
6997 if ($line =~ /\bstrcpy\s*\(/) {
7003 if ($line =~ /\bstrlcpy\s*\(/) {
7009 if ($line =~ /\bstrncpy\s*\(/) {
7057 $line =~ /\bsscanf\b/ &&
7071 $line =~ /\bsscanf\b/) {
7088 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
7188 if ($line =~ /\*\s*\)\s*$allocFunctions\b/) {
7196 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*((?:kv|k|v)[mz]alloc(?:_node)?)\s*\(\s*(sizeof\…
7234 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*($Lval)\s*,/ &&
7241 if ($line =~ /\b((?:devm_)?((?:k|kv)?(calloc|malloc_array)(?:_node)?))\s*\(\s*sizeof\b/) {
7247 if ($line =~ /;\s*;\s*$/) {
7257 $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
7274 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(${CONFIG_}[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:…
7317 if ($line =~ /\b__FUNCTION__\b/) {
7326 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
7332 if ($line =~ /\byield\s*\(\s*\)/) {
7338 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
7365 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
7371 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
7377 if ($line =~ /^.\s*__initcall\s*\(/) {
7383 if ($line =~ /\bspin_is_locked\(/) {
7389 if ($line =~ /\b($deprecated_apis_search)\b\s*\(/) {
7399 $line !~ /\bconst\b/ &&
7400 $line =~ /\bstruct\s+($const_structs)\b(?!\s*\{)/) {
7408 if ($line =~ /\bNR_CPUS\b/ &&
7409 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
7410 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
7411 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
7412 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
7413 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/ &&
7414 $line !~ /^.\s*\.\w+\s*=\s*.*\bNR_CPUS\b/)
7421 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
7428 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
7434 if ($line =~ /\breturn\s+sysfs_emit\s*\(\s*$FuncArg\s*,\s*($String)/ &&
7455 if ($line =~ /\b(?:(?:un)?likely)\s*\(\s*!?\s*(IS_ERR(?:_OR_NULL|_VALUE)?|WARN)/) {
7461 if ($line =~ /\bin_atomic\s*\(/) {
7488 if ($line =~ /\b($rcu_trace_funcs)\s*\(/) {
7496 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
7497 $line =~ /__lockdep_no_validate__\s*\)/ ) {
7506 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
7507 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
7577 $line =~ /$mode_perms_search/) {
7610 while ($line =~ m{\b($multi_mode_perms_string_search)\b}g) {
7621 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
7622 my $extracted_string = get_quoted_string($line, $rawline);
7646 if ($line =~ /\.extra[12]\s*=\s*&(zero|one|int_max)\b/) {