Lines Matching refs:stat
3244 my ($stat, $cond, $line_nr_next, $remain_next, $off_next,
3249 ($stat, $cond, $line_nr_next, $remain_next, $off_next) =
3251 $stat =~ s/\n./\n /g;
3258 my $frag = $stat; $frag =~ s/;+\s*$//;
3272 my $s = $stat;
3395 ($stat, $cond, $line_nr_next, $remain_next, $off_next) =
3397 if (!defined $stat);
3398 my ($s, $c) = ($stat, $cond);
3474 $stat !~ /^\+/ && $stat_real !~ /^\+/) {
3632 if ($stat =~ /^(?:.\s*}\s*\n)?.([A-Z_]+)\s*\(\s*($Ident)/ &&
3637 } elsif ($stat !~ /(?:
4511 if (defined($stat) && $stat =~ /^.\s*return(\s*)\(/s) {
4514 $stat =~ /^.\s*return\s*($balanced_parens)\s*;\s*$/) {
4604 ($stat, $cond, $line_nr_next, $remain_next, $off_next) =
4606 if (!defined $stat);
4625 defined($stat) && defined($cond) &&
4627 my ($s, $c) = ($stat, $cond);
5739 defined $stat &&
5740 $stat =~ /^\+(?![^\{]*\{\s*).*\b(\w+)\s*\(.*$String\s*,/s &&
5743 my $lc = $stat =~ tr@\n@@;
5765 defined $stat &&
5766 $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/) {
5774 "memset to 0's uses 0 as the 2nd argument, not the 3rd\n" . "$here\n$stat\n");
5777 "single byte memset is suspicious. Swapped 2nd/3rd argument?\n" . "$here\n$stat\n");
5825 defined $stat &&
5826 $stat =~ /^\+(?:.*?)\b(min|max)\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\)/) {
5843 "$call() should probably be ${call}_t($cast, $arg1, $arg2)\n" . "$here\n$stat\n");
5849 defined $stat &&
5850 $stat =~ /^\+(?:.*?)\busleep_range\s*\(\s*($FuncArg)\s*,\s*($FuncArg)\s*\)/) {
5855 …e should not use min == max args; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n");
5859 … args reversed, use min then max; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n");
5865 defined $stat &&
5867 ($stat !~ /$Ident\s*=\s*sscanf\s*$balanced_parens/ &&
5868 $stat !~ /\bsscanf\s*$balanced_parens\s*(?:$Compare)/ &&
5869 $stat !~ /(?:$Compare)\s*\bsscanf\s*$balanced_parens/)) {
5870 my $lc = $stat =~ tr@\n@@;
5882 defined $stat &&
5884 my $lc = $stat =~ tr@\n@@;
5912 if ($realfile =~ /\.c$/ && defined $stat &&
5913 $stat =~ /^.\s*(?:extern\s+)?$Type\s+($Ident)(\s*)\(/s)
5918 my $s = $stat;
5934 } elsif ($realfile =~ /\.c$/ && defined $stat &&
5935 $stat =~ /^.\s*extern\s+/)
5942 if (defined $stat &&
5943 $stat =~ /^.\s*(?:extern\s+)?$Type\s*$Ident\s*\(\s*([^{]+)\s*\)\s*;/s &&
5957 defined $stat &&
5958 $stat =~ /^.\s*(?:$Storage\s+)?$Type\s*($Ident)\s*$balanced_parens\s*{/s) {
5963 my $cnt = statement_rawlines($stat);
6004 defined $stat &&
6005 …$stat =~ /^\+\s*($Lval)\s*\=\s*(?:$balanced_parens)?\s*(k[mz]alloc)\s*\(\s*($FuncArg)\s*\*\s*($Fun…
6021 my $cnt = statement_rawlines($stat);
6105 defined $stat &&
6106 $stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) {
6109 my $cnt = statement_rawlines($stat);
6276 defined $stat &&
6282 my $lc = $stat =~ tr@\n@@;
6295 if ($stat =~ /$test/) {