Lines Matching refs:file
4 # (c) 2001, Dave Jones. (the file handling bit)
36 my $file = 0;
91 --showfile emit diffed file position, not input file position
102 -f, --file treat FILE as regular source file
110 requires --strict for use with --file
114 --no-summary suppress the per-file summary
116 --summary-file include the filename in summary
129 file. It's your fault if there's no backup or git
135 --typedefsfile Read additional types from this file
220 or warn "$P: Can't find a readable $configuration_file file $!\n";
244 or warn "$P: Can't read the documentation file $docsfile $!\n";
299 'f|file!' => \$file,
313 'summary-file!' => \$summary_file,
332 die "$P: --git cannot be used with --file or --fix\n" if ($git && ($file || $fix));
756 ["debugfs_create_(?:file|u8|u16|u32|u64|x8|x16|x32|x64|size_t|atomic_t|bool|blob|regset32|u32_array)", 2],
889 warn "No typos will be found - file '$spelling_file': $!\n";
912 warn "No codespell typos will be found - file '$codespellfile': $!\n";
919 my ($wordsRef, $file) = @_;
921 if (open(my $words, '<', $file)) {
931 print("$file: '$line' invalid - ignored\n");
938 close($file);
948 or warn "No structs that should be const will be found - file '$conststructsfile': $!\n";
954 or warn "No additional types will be considered - file '$typedefsfile': $!\n";
1046 my ($file) = @_;
1048 return if (!(-f $file));
1052 open(my $include_file, '<', "$file")
1053 or warn "$P: Can't read '$file' $!\n";
1114 foreach my $file (@include_files) {
1116 localtime((stat $file)[9]));
1139 foreach my $file (@include_files) {
1140 seed_camelcase_file($file);
1196 $chk_signoff = 0 if ($file);
1239 my $oldfile = $file;
1240 $file = 1 if ($is_git_file);
1244 } elsif ($file) {
1285 $file = $oldfile if ($is_git_file);
2435 my $file = $absolute;
2440 while ($file =~ s@^[^/]*/@@) {
2441 if (-f "$root/$file") {
2442 ##print "file<$file>\n";
2452 substr($prefix, -length($file)) = '';
2581 my $in_header_lines = $file ? 0 : 1;
2603 # Trace the real file/line as we go.
2735 #extract the line range in the file after the patch is applied
2784 $here = "#$linenr: " if (!$file);
2785 $here = "#$realline: " if ($file);
2791 $realfile =~ s@^([^/]*)/@@ if (!$file);
2796 $realfile =~ s@^([^/]*)/@@ if (!$file);
2800 if (!$file && $tree && $p1_prefix ne '' &&
2817 if ($file) {
2882 # Check for incorrect file permissions
2883 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2950 # emit the "does MAINTAINERS need updating?" message on file add/move/delete
3150 # file delta changes
3254 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
3261 "added, moved or deleted file(s), does MAINTAINERS need updating?\n" . $herecurr);
3266 ($line =~ /^new file mode\s*\d+\s*$/) &&
3272 # Check for wrappage within a valid hunk of the file
3319 my $file = $1;
3321 if ($file =~ m{^(.*?)(?::\d+)+:?$} &&
3325 check_absolute_file($file, $herecurr);
3342 $msg_level = \&CHK if ($file);
3445 $msg_level = \&CHK if ($file);
3470 last if (!$file && $f =~ /^\@\@/);
3535 "Misordered MAINTAINERS entry - list file patterns in alphabetic order\n" . $hereprev);
3623 $msg_level = \&CHK if ($file);
3638 "It's generally not useful to have the filename in the file\n" . $herecurr);
3641 # check we are in a valid source file if not then ignore this hunk
3710 $msg_level = \&CHK if ($file);
3717 if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file/) {
3719 "adding a line without newline at end of file\n" . $herecurr) &&
3721 fix_delete_line($fixlinenr+1, "No newline at end of file");
3732 # check we are in a valid source file C or perl if not then ignore this hunk
3993 # check we are in a valid C source file if not then ignore this hunk
4675 $msg_level = \&CHK if ($file);
4741 if (!$file && $line =~ /\bENOTSUPP\b/) {
5691 if (!$file && !$camelcase_file_seeded) {
5717 my $file = "$1.h";
5718 my $checkfile = "include/linux/$file";
5723 my $asminclude = `grep -Ec "#include\\s+<asm/$file>" $root/$checkfile`;
5727 "Consider using #include <linux/$file> instead of <asm/$file>\n" . $herecurr);
5730 "Use #include <linux/$file> instead of <asm/$file>\n" . $herecurr);
6125 # This does not work very well for -f --file checking as it depends on patch
6126 # context providing the function name or a single line form for in-file
7093 $msg_level = \&CHK if ($file);
7506 if ($file) {
7522 Do _NOT_ trust the results written to this file.
7525 This EXPERIMENTAL file is simply a convenience to help rewrite patches.