Lines Matching refs:stat

2956 		my ($stat, $cond, $line_nr_next, $remain_next, $off_next,
2961 ($stat, $cond, $line_nr_next, $remain_next, $off_next) =
2963 $stat =~ s/\n./\n /g;
2970 my $frag = $stat; $frag =~ s/;+\s*$//;
2984 my $s = $stat;
3107 ($stat, $cond, $line_nr_next, $remain_next, $off_next) =
3109 if (!defined $stat);
3110 my ($s, $c) = ($stat, $cond);
3186 $stat !~ /^\+/ && $stat_real !~ /^\+/) {
3306 if ($stat =~ /^(?:.\s*}\s*\n)?.([A-Z_]+)\s*\(\s*($Ident)/ &&
3311 } elsif ($stat !~ /(?:
4194 if (defined($stat) && $stat =~ /^.\s*return(\s*)\(/s) {
4197 $stat =~ /^.\s*return\s*($balanced_parens)\s*;\s*$/) {
4287 ($stat, $cond, $line_nr_next, $remain_next, $off_next) =
4289 if (!defined $stat);
4308 defined($stat) && defined($cond) &&
4310 my ($s, $c) = ($stat, $cond);
5280 defined $stat &&
5281 $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/) {
5289 "memset to 0's uses 0 as the 2nd argument, not the 3rd\n" . "$here\n$stat\n");
5292 "single byte memset is suspicious. Swapped 2nd/3rd argument?\n" . "$here\n$stat\n");
5298 defined $stat &&
5299 $stat =~ /^\+(?:.*?)\bmemcpy\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*ETH_ALEN\s*\)/) {
5301 …ther_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)\n" . "$here\n$stat\n") &&
5309 defined $stat &&
5310 $stat =~ /^\+(?:.*?)\bmemcmp\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*ETH_ALEN\s*\)/) {
5312 … "Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp()\n" . "$here\n$stat\n")
5318 defined $stat &&
5319 $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*ETH_ALEN\s*\)/) {
5325 "Prefer eth_zero_addr over memset()\n" . "$here\n$stat\n") &&
5331 "Prefer eth_broadcast_addr() over memset()\n" . "$here\n$stat\n") &&
5340 defined $stat &&
5341 $stat =~ /^\+(?:.*?)\b(min|max)\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\)/) {
5358 "$call() should probably be ${call}_t($cast, $arg1, $arg2)\n" . "$here\n$stat\n");
5364 defined $stat &&
5365 $stat =~ /^\+(?:.*?)\busleep_range\s*\(\s*($FuncArg)\s*,\s*($FuncArg)\s*\)/) {
5370 …e should not use min == max args; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n");
5374 … args reversed, use min then max; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n");
5380 defined $stat &&
5382 ($stat !~ /$Ident\s*=\s*sscanf\s*$balanced_parens/ &&
5383 $stat !~ /\bsscanf\s*$balanced_parens\s*(?:$Compare)/ &&
5384 $stat !~ /(?:$Compare)\s*\bsscanf\s*$balanced_parens/)) {
5385 my $lc = $stat =~ tr@\n@@;
5397 defined $stat &&
5399 my $lc = $stat =~ tr@\n@@;
5427 if ($realfile =~ /\.c$/ && defined $stat &&
5428 $stat =~ /^.\s*(?:extern\s+)?$Type\s+($Ident)(\s*)\(/s)
5433 my $s = $stat;
5449 } elsif ($realfile =~ /\.c$/ && defined $stat &&
5450 $stat =~ /^.\s*extern\s+/)
5565 defined $stat &&
5566 $stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) {
5569 my $cnt = statement_rawlines($stat);