Lines Matching refs:file
36 my $file = 0;
302 'f|file!' => \$file,
359 die "$P: --git cannot be used with --file or --fix\n" if ($git && ($file || $fix));
948 my ($wordsRef, $file) = @_;
950 if (open(my $words, '<', $file)) {
960 print("$file: '$line' invalid - ignored\n");
967 close($file);
1075 my ($file) = @_;
1077 return if (!(-f $file));
1081 open(my $include_file, '<', "$file")
1082 or warn "$P: Can't read '$file' $!\n";
1143 foreach my $file (@include_files) {
1145 localtime((stat $file)[9]));
1168 foreach my $file (@include_files) {
1169 seed_camelcase_file($file);
1225 $chk_signoff = 0 if ($file);
1268 my $oldfile = $file;
1269 $file = 1 if ($is_git_file);
1273 } elsif ($file) {
1314 $file = $oldfile if ($is_git_file);
2464 my $file = $absolute;
2469 while ($file =~ s@^[^/]*/@@) {
2470 if (-f "$root/$file") {
2481 substr($prefix, -length($file)) = '';
2733 my $in_header_lines = $file ? 0 : 1;
2936 $here = "#$linenr: " if (!$file);
2937 $here = "#$realline: " if ($file);
2943 $realfile =~ s@^([^/]*)/@@ if (!$file);
2948 $realfile =~ s@^([^/]*)/@@ if (!$file);
2952 if (!$file && $tree && $p1_prefix ne '' &&
2969 if ($file) {
3471 my $file = $1;
3473 if ($file =~ m{^(.*?)(?::\d+)+:?$} &&
3477 check_absolute_file($file, $herecurr);
3494 $msg_level = \&CHK if ($file);
3597 $msg_level = \&CHK if ($file);
3622 last if (!$file && $f =~ /^\@\@/);
3775 $msg_level = \&CHK if ($file);
3862 $msg_level = \&CHK if ($file);
4832 $msg_level = \&CHK if ($file);
4898 if (!$file && $line =~ /\bENOTSUPP\b/) {
5846 if (!$file && !$camelcase_file_seeded) {
5872 my $file = "$1.h";
5873 my $checkfile = "include/linux/$file";
5878 my $asminclude = `grep -Ec "#include\\s+<asm/$file>" $root/$checkfile`;
5882 "Consider using #include <linux/$file> instead of <asm/$file>\n" . $herecurr);
5885 "Use #include <linux/$file> instead of <asm/$file>\n" . $herecurr);
7242 $msg_level = \&CHK if ($file);
7655 if ($file) {