• Home
  • Raw
  • Download

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;
940 my $line = $_;
942 $line =~ s/\s*\n?$//g;
943 $line =~ s/^\s*//g;
945 next if ($line =~ m/^\s*#/);
946 next if ($line =~ m/^\s*$/);
948 my ($suspect, $fix) = split(/\|\|/, $line);
960 my $line = $_;
962 $line =~ s/\s*\n?$//g;
963 $line =~ s/^\s*//g;
965 next if ($line =~ m/^\s*#/);
966 next if ($line =~ m/^\s*$/);
967 next if ($line =~ m/, disabled/i);
969 $line =~ s/,.*$//;
971 my ($suspect, $fix) = split(/->/, $line);
988 my $line = $_;
990 $line =~ s/\s*\n?$//g;
991 $line =~ s/^\s*//g;
993 next if ($line =~ m/^\s*#/);
994 next if ($line =~ m/^\s*$/);
995 if ($line =~ /\s/) {
996 print("$file: '$line' invalid - ignored\n");
1001 $$wordsRef .= $line;
1125 foreach my $line (@lines) {
1126 next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/);
1127 if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) {
1129 } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) {
1131 } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) {
1288 foreach my $line (split(/\n/, $lines)) {
1289 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
1550 my ($line) = @_;
1553 $line =~ s/^.//;
1554 $line = expand_tabs($line);
1557 my ($white) = ($line =~ /^(\s*)/);
1559 return (length($line), length($white));
1574 my ($line) = @_;
1584 $res = substr($line, 0, 1);
1586 for ($off = 1; $off < length($line); $off++) {
1587 $c = substr($line, $off, 1);
1591 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
1598 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
1604 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
1667 my ($line, $rawline) = @_;
1669 return "" if (!defined($line) || !defined($rawline));
1670 return "" if ($line !~ m/($String)/g);
1676 my $line = $linenr - 1;
1699 for (; $remain > 0; $line++) {
1700 last if (!defined $lines[$line]);
1701 next if ($lines[$line] =~ /^-/);
1704 $blk .= $lines[$line] . "\n";
1706 $line++;
1792 $line++;
1805 $line, $remain + 1, $off - $loff + 1, $level);
1882 my $line;
1891 for ($line = $start; $remain > 0; $line++) {
1892 next if ($rawlines[$line] =~ /^-/);
1895 $blk .= $rawlines[$line];
1898 if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) {
1900 } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) {
1902 } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
1906 foreach my $c (split(//, $lines[$line])) {
1922 push(@res, $rawlines[$line]);
1979 my $line = $rawlines[$linenr - 1];
1981 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1984 if ($line =~ m@/\*@) {
1990 $current_comment .= $line . "\n" if ($in_comment);
1991 if ($line =~ m@\*/@) {
2015 my $line;
2017 $line = $rawlines[$offset++];
2018 next if (defined($line) && $line =~ /^-/);
2022 return $line;
2277 my ($possible, $line) = @_;
2297 warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
2308 warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible);
2314 warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible);
2319 warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
2416 my $line = $old_line; #don't modify the array
2417 if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename
2419 } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk
2421 fixup_current_range(\$line, $delta_offset, 0);
2438 push(@lines, $line);
2449 my ($linenr, $line) = @_;
2453 LINE => $line,
2459 my ($linenr, $line) = @_;
2463 LINE => $line,
2576 my ($line) = @_;
2580 my $opens = $line =~ tr/\(/\(/;
2581 my $closes = $line =~ tr/\)/\)/;
2589 my $len = length($line);
2592 my $string = substr($line, $pos);
2595 } elsif (substr($line, $pos, 1) eq '(') {
2602 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2606 my ($line, $rawline) = @_;
2609 for my $i (0 .. (length($line) - 1)) {
2610 if (substr($line, $i, 1) eq "$;") {
2705 my $line;
2708 $line = $rawline;
2765 $line = sanitise_line($rawline);
2767 push(@lines, $line);
2770 $realcnt-- if ($line =~ /^(?:\+| |$)/);
2778 if ($setup_docs && $line =~ /^\+/) {
2779 push(@setup_docs, $line);
2788 foreach my $line (@lines) {
2791 my $sline = $line; #copy of $line
2795 my $raw_comment = get_raw_comment($line, $rawline);
2799 ($line =~ /^ mode change [0-7]+ => [0-7]+ \S+\s*$/ ||
2800 ($line =~ /^rename (?:from|to) \S+\s*$/ ||
2801 $line =~ /^diff --git a\/[\w\/\.\_\-]+ b\/\S+\s*$/))) {
2807 $line =~ /^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@(.*)/) {
2834 } elsif ($line =~ /^( |\+|$)/) {
2842 ($prevline, $stashline) = ($stashline, $line);
2859 if ($line =~ /^diff --git.*?(\S+)$/) {
2864 } elsif ($line =~ /^\+\+\+\s+(\S+)/) {
2932 if ($line !~ /^\s*$/) {
2943 (($line =~ m@^\s+diff\b.*a/([\w/]+)@ &&
2944 $line =~ m@^\s+diff\b.*a/[\w/]+\s+b/$1\b@) ||
2945 $line =~ m@^\s*(?:\-\-\-\s+a/|\+\+\+\s+b/)@ ||
2946 $line =~ m/^\s*\@\@ \-\d+,\d+ \+\d+,\d+ \@\@/)) {
2953 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2963 if (decode("MIME-Header", $line) =~ /^From:\s*(.*)/) {
2969 $author = encode("utf8", $author) if ($line =~ /=\?utf-8\?/i);
2975 if ($line =~ /^\s*signed-off-by:\s*(.*)/i) {
3014 if ($line =~ /^---$/) {
3021 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
3027 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
3159 my $sig_nospace = $line;
3201 $line =~ /^This reverts commit/) {
3206 $line =~ /((?:(?:BUG: K.|UB)SAN: |Call Trace:|stable\@|syzkaller))/) {
3212 $line =~ /^\s*(fixes:?)\s*(?:commit\s*)?([0-9a-f]{5,40})(?:\s*($balanced_parens))?/i) {
3231 my $tag_space = not ($line =~ /^fixes:? [0-9a-f]{5,40} ($balanced_parens)/i);
3252 $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
3258 if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) {
3268 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
3269 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
3271 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/) ||
3272 $line =~ /^(?:\s+\w+:\s+[0-9a-fA-F]+){3,3}/ ||
3273 $line =~ /^\s*\#\d+\s*\[[0-9a-fA-F]+\]\s*\w+ at [0-9a-fA-F]+/) {
3280 length($line) > 75 &&
3281 !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
3283 $line =~ /^\s*(?:[\w\.\-\+]*\/)++[\w\.\-\+]+:/ ||
3285 $line =~ /^\s*(?:Fixes:|$link_tags_search|$signature_tags)/i ||
3295 $line =~ /^\s*$/) {
3301 $line =~ /^\s*(\w+:)\s*http/ && $1 !~ /^$link_tags_search$/) {
3313 $line =~ /^\s*(\w+:)\s*(\S+)/) {
3323 if ($in_commit_log && $line =~ /^#/) {
3342 $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i &&
3343 $line !~ /^This reverts commit [0-9a-f]{7,40}/ &&
3344 (($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||
3345 …($line =~ /\bcommit\s*$/i && defined($rawlines[$linenr]) && $rawlines[$linenr] =~ /^\s*[0-9a-f]{5,…
3346 ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&
3347 $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i &&
3348 $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) {
3362 my $input = $line;
3363 if ($line =~ /(?:\bcommit\s+[0-9a-f]{5,}|\bcommit\s*$)/i) {
3404 $last_git_commit_id_linenr = $linenr if ($line =~ /\bcommit\s*$/i);
3415 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
3416 $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ ||
3417 ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
3427 ($line =~ /^new file mode\s*\d+\s*$/) &&
3434 if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
3441 if (($realfile =~ /^$/ || $line =~ /^\+/) &&
3479 while ($line =~ m{(?:^|\s)(/\S*)}g) {
3493 ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
3513 if ($in_commit_log && $line =~ /(^fixes:|\bcommit)\s+([0-9a-f]{6,40})\b/i) {
3578 next if (!$hunk_line || $line =~ /^-/);
3581 if ($line =~ /^\+.*\015/) {
3618 $line =~ /^\+\s*(?:config|menuconfig|choice)\b/) {
3703 ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
3718 (($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
3719 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
3813 substr($line, @-, @+ - @-) eq "$;" x (@+ - @-)) {
3834 if ($line =~ /^\+/ && $length > $max_line_length) {
3841 …if ($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(?:KERN_\S+\s*|[^"]*))?($String\s*(?:|,|\)\s*;)\s*)$/ …
3842 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3847 } elsif ($line =~ /^\+\s*$String\s*(?:\s*|,|\)\s*;)\s*$/ ||
3848 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
3852 } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
3853 $line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
3863 } elsif ($line =~ /($;[\s$;]*)$/ &&
3864 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3869 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
3883 …if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file…
3893 $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) {
3975 $line =~ /^(\+| )([ \t]*)/;
3988 $fix && $line =~ /^\+/) {
4003 if ($line =~ /^\+(.*)\(\s*$Type\s*\)([ \t]++)((?![={]|\\$|$Attribute|__attribute__))/ &&
4034 $line =~ /^\+[ \t]*$;/ && #leading comment
4059 $line =~ /^\+/ &&
4060 !($line =~ /^\+\s*$/ ||
4061 $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param|ALLOW_ERROR_INJECTION)/ ||
4062 $line =~ /^\+\s*MODULE_/i ||
4063 $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
4064 $line =~ /^\+[a-z_]*init/ ||
4065 $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
4066 $line =~ /^\+\s*DECLARE/ ||
4067 $line =~ /^\+\s*builtin_[\w_]*driver/ ||
4068 $line =~ /^\+\s*__setup/)) {
4078 $line =~ /^\+\s*$/ &&
4140 if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) {
4153 if ($line =~ /^\+.*([\[\(])\s*$/) {
4204 if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
4291 if ($line=~/\bswitch\s*\(.*\)/) {
4314 …if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $li…
4319 if ($line =~ /^\+\t{6,}/) {
4360 …if ($line =~ /\b(?:(?:if|while|for|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|(?:do|else)\b)/ && $line !~ /…
4461 my $opline = $line; $opline =~ s/^./ /;
4474 next if ($line =~ /^[^\+]/);
4479 if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {
4481 …if ($line =~ /^\+\s*(?:$Declare)?$var\s*=\s*(?:$var|\*\s*\(?\s*&\s*\(?\s*$var\s*\)?\s*\)?)\s*[;,]/…
4489 $line =~ /^\+\s*(?!\#\s*(?!define\s+|if))\s*$Lval/) {
4492 $line =~ /^.\s*($Lval)/;
4500 while ($line =~ m{\b($Declare)\s*(?!char\b|short\b|int\b|long\b)\s*($Ident)?\s*[=,;\[\)\(]}g) {
4525 if ($line =~ /^.\s*$Declare\s*$/) {
4528 } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
4536 if ($line =~ /^.\s*$Modifier\s*$/) {
4539 } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
4547 if ($line =~ /^.\s*{/ &&
4551 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4557 $fixedline = $line;
4581 if ($line =~ m{//}) {
4585 my $line = $fixed[$fixlinenr];
4586 if ($line =~ /\/\/(.*)$/) {
4593 $line =~ s@//.*@@;
4630 ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
4641 if ($line =~ /^\+$Type\s*$Ident(?:\s+$Modifier)*\s*=\s*($zero_initializer)\s*;/ &&
4650 if ($line =~ /^\+.*\bstatic\s.*=\s*($zero_initializer)\s*;/) {
4687 if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) {
4694 …if ($line =~ /^\+\s*const\s+(char|unsigned\s+char|_*u8|(?:[us]_)?int8_t)\s+\w+\s*\[\s*(?:\w+\s*)?\…
4703 if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) {
4734 if ($line =~ /^.\s+(?:static\s+|const\s+)?char\s+\*\s*\w+\s*\[\s*\]\s*=\s*\{/) {
4741 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) {
4743 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
4754 if ($line =~ /(\b$Type\s*$Ident)\s*\(\s*\)/) {
4764 if ($line =~ /\btypedef\s/ &&
4765 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
4766 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
4767 $line !~ /\b$typeTypedefs\b/ &&
4768 $line !~ /\b__bitwise\b/) {
4775 while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) {
4800 while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) {
4830 …if ($line =~ /\b(?!AA_|BUILD_|DCCP_|IDA_|KVM_|RWLOCK_|snd_|SPIN_)(?:[a-zA-Z_]*_)?BUG(?:_ON)?(?:_[A…
4838 if ($line =~ /\bLINUX_VERSION_CODE\b/) {
4844 if ($line =~ /\bprintk_ratelimit\s*\(/) {
4850 if ($line =~ /\bprintk\s*\(\s*(?!KERN_[A-Z]+\b)/) {
4856 if ($line =~ /\b(printk(_once|_ratelimited)?)\s*\(\s*KERN_([A-Z]+)/) {
4872 if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
4882 if ($line =~ /\b(trace_printk|trace_puts|ftrace_vprintk)\s*\(/) {
4890 if ($line =~ /\bENOSYS\b/) {
4898 if (!$file && $line =~ /\bENOTSUPP\b/) {
4929 if ($line =~ /^.\s*{/ &&
4933 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
4947 if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) {
4959 if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)($Ident)(\s*)\)(\s*)\(/) {
5030 while ($line =~ /(.*?\s)\[/g) {
5045 while ($line =~ /($Ident)\s+\(/g) {
5047 my $ctx_before = substr($line, 0, $-[1]);
5080 if (!($line=~/\#\s*include/)) {
5391 if ($line =~ /^\+.*\S\s+;\s*$/) {
5401 if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) {
5423 if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
5424 $line =~ /\b(?:else|do)\{/) {
5442 if ($line =~ /}(?!(?:,|;|\)|\}))\S/) {
5452 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
5460 if ($line =~ /\s\]/) {
5470 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
5471 $line !~ /for\s*\(\s+;/) {
5479 if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ &&
5480 $line !~ /for\s*\(.*;\s+\)/ &&
5481 $line !~ /:\s+\)/) {
5493 while ($line =~ /(?:[^&]&\s*|\*)\(\s*($Ident\s*(?:$Member\s*)+)\s*\)/g) {
5505 if ($line =~ /(\bif\s*|)(\(\s*$Ident\s*(?:$Member\s*)+\))[ \t]*\(/ && $1 !~ /^if/) {
5599 $line =~ /\bif\s*((?:\(\s*){2,})/) {
5603 …if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$coun…
5616 $line =~ /^\+(.*)\b($Constant|[A-Z_][A-Z0-9_]*)\s*($Compare)\s*($LvalOrFunc)/) {
5650 if ($line =~ /\b(if|while|for|switch)\(/) {
5661 if ($line =~ /do\s*(?!{)/) {
5684 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
5753 if ($line =~ /
5769 if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
5778 if ($line =~ /}\s*if\b/) {
5784 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
5785 $line !~ /\G(?:
5796 if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ &&
5800 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5814 if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ &&
5826 $fix && $prevline =~ /^\+/ && $line =~ /^\+/) {
5840 while ($line =~ m{($Constant|$Lval)}g) {
5877 if ($line =~ /\#\s*define.*\\\s+$/) {
5911 $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) {
6067 $line =~ s/(\w+)/$maybe_linker_symbol{$1}++/ge;
6071 $line !~ /^\+\s*\#.*\\$/ && # preprocessor
6072 $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
6073 $line =~ /^\+.*\\$/) {
6084 $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) {
6124 if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
6187 $line =~ /\b(if|while|for|else)\b/) {
6191 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
6244 if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) {
6261 if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
6270 if ($line =~ /^\+\s*$String/ &&
6278 my $extracted_string = get_quoted_string($line, $rawline);
6309 if ($line =~ /^\+.*$String/ &&
6311 get_quoted_string($line, $rawline) =~ /\b$context_function\b/ &&
6312 length(get_quoted_string($line, $rawline)) != (length($context_function) + 2)) {
6339 if ($line =~ /$String[A-Z_]/ ||
6340 ($line =~ /([A-Za-z0-9_]+)$String/ && $1 !~ /^[Lu]$/)) {
6344 while ($line =~ /($String)/g) {
6353 if ($line =~ /$String\s*[Lu]?"/) {
6357 while ($line =~ /($String)(?=\s*")/g) {
6367 while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) {
6396 if ($line =~ /^.\s*\#\s*if\s+0\b/) {
6402 if ($line =~ /^.\s*\#\s*if\s+1\b/) {
6411 …if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_…
6441 if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
6459 if ($line !~ /printk(?:_ratelimited|_once)?\s*\(/ &&
6460 $line =~ /\b$logFunctions\s*\(.*\b(KERN_[A-Z]+)\b/) {
6470 if ($line =~ /\bprintk\s*\(\s*KERN_CONT\b|\bpr_cont\s*\(/) {
6477 $line =~ /\b$logFunctions\s*\(/ &&
6499 $line =~ /$LvalOrFunc\s*\&\s*($LvalOrFunc)\s*>>/ &&
6507 while ($line =~ /\b$LvalOrFunc\s*(==|\!=)\s*NULL\b/g) {
6520 if ($line =~ /(\b$InitAttribute\b)/) {
6522 …if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Iden…
6538 if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) {
6552 if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) {
6567 if ($line =~ /\b__read_mostly\b/ &&
6568 $line =~ /($Type)\s*$Ident/ && $1 !~ /\*\s*$/ && $1 =~ /\bconst\b/) {
6578 … $line =~ /(__constant_(?:htons|ntohs|[bl]e(?:16|32|64)_to_cpu|cpu_to_[bl]e(?:16|32|64)))\s*\(/) {
6590 if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
6604 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
6612 if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) {
6618 if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) {
6631 if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) {
6642 if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ ||
6643 $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) {
6671 if ($line =~ /\b(?:$all_barriers)\s*\(/) {
6682 $line =~ m/\b(?:$underscore_smp_barriers)\s*\(/ &&
6683 $line !~ m/^.\s*\#\s*define\s+(?:$underscore_smp_barriers)\s*\(/) {
6689 if ($line =~ /\bwaitqueue_active\s*\(/) {
6697 if ($line =~ /\bdata_race\s*\(/) {
6705 …if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@inc…
6711 if ($line =~ /\b($Type)\s+($Storage)\b/) {
6716 if ($line =~ /\b$Storage\b/ &&
6717 $line !~ /^.\s*$Storage/ &&
6718 $line =~ /^.\s*(.+?)\$Storage\s/ &&
6726 if ($line =~ /\b$Type\s+$Inline\b/ ||
6727 $line =~ /\b$Inline\s+$Storage\b/) {
6734 $line =~ /\b(__inline__|__inline)\b/) {
6810 … $line =~ /(?:$Declare|$DeclareMisordered)\s*$Ident\s*$balanced_parens\s*(?:$Attribute)?\s*;/ &&
6811 ($line =~ /\b__attribute__\s*\(\s*\(.*\bweak\b/ ||
6812 $line =~ /\b__weak\b/)) {
6820 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
6837 if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
6857 if ($line =~ /\bsizeof\s*\(\s*\&/) {
6863 if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) {
6872 if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
6879 my $fmt = get_quoted_string($line, $rawline);
7007 if ($line =~ /\bstrcpy\s*\(/) {
7013 if ($line =~ /\bstrlcpy\s*\(/) {
7019 if ($line =~ /\bstrncpy\s*\(/) {
7025 if ($line =~ /\bethtool_sprintf\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\)/) {
7086 $line =~ /\bsscanf\b/ &&
7100 $line =~ /\bsscanf\b/) {
7117 $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
7217 if ($line =~ /\*\s*\)\s*$allocFunctions\b/) {
7225 …$line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*((?:kv|k|v)[mz]alloc(?:_node)?)\s*\(\s*(sizeof\…
7263 $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*($Lval)\s*,/ &&
7270 if ($line =~ /\b((?:devm_)?((?:k|kv)?(calloc|malloc_array)(?:_node)?))\s*\(\s*sizeof\b/) {
7276 if ($line =~ /;\s*;\s*$/) {
7286 $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
7303 …if ($line =~ /^\+\s*#\s*if\s+defined(?:\s*\(?\s*|\s+)(${CONFIG_}[A-Z_]+)\s*\)?\s*\|\|\s*defined(?:…
7346 if ($line =~ /\b__FUNCTION__\b/) {
7355 while ($line =~ /\b(__(?:DATE|TIME|TIMESTAMP)__)\b/g) {
7361 if ($line =~ /\byield\s*\(\s*\)/) {
7367 if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) {
7394 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
7400 if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
7406 if ($line =~ /^.\s*__initcall\s*\(/) {
7412 if ($line =~ /\bspin_is_locked\(/) {
7418 if ($line =~ /\b($deprecated_apis_search)\b\s*\(/) {
7428 $line !~ /\bconst\b/ &&
7429 $line =~ /\bstruct\s+($const_structs)\b(?!\s*\{)/) {
7437 if ($line =~ /\bNR_CPUS\b/ &&
7438 $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ &&
7439 $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ &&
7440 $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ &&
7441 $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ &&
7442 $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/ &&
7443 $line !~ /^.\s*\.\w+\s*=\s*.*\bNR_CPUS\b/)
7450 if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) {
7457 $line =~ /\b((?:un)?likely)\s*\(\s*$FuncArg\s*\)\s*$Compare/) {
7463 if ($line =~ /\breturn\s+sysfs_emit\s*\(\s*$FuncArg\s*,\s*($String)/ &&
7484 if ($line =~ /\b(?:(?:un)?likely)\s*\(\s*!?\s*(IS_ERR(?:_OR_NULL|_VALUE)?|WARN)/) {
7490 if ($line =~ /\bin_atomic\s*\(/) {
7517 if ($line =~ /\b($rcu_trace_funcs)\s*\(/) {
7525 if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ ||
7526 $line =~ /__lockdep_no_validate__\s*\)/ ) {
7535 if ($line =~ /debugfs_create_\w+.*\b$mode_perms_world_writable\b/ ||
7536 $line =~ /DEVICE_ATTR.*\b$mode_perms_world_writable\b/) {
7606 $line =~ /$mode_perms_search/) {
7639 while ($line =~ m{\b($multi_mode_perms_string_search)\b}g) {
7650 if ($line =~ /\bMODULE_LICENSE\s*\(\s*($String)\s*\)/) {
7651 my $extracted_string = get_quoted_string($line, $rawline);
7675 if ($line =~ /\.extra[12]\s*=\s*&(zero|one|int_max)\b/) {