Lines Matching refs:file
4 # (c) 2001, Dave Jones. (the file handling bit)
33 my $file = 0;
86 --showfile emit diffed file position, not input file position
97 -f, --file treat FILE as regular source file
105 requires --strict for use with --file
109 --no-summary suppress the per-file summary
111 --summary-file include the filename in summary
124 file. It's your fault if there's no backup or git
130 --typedefsfile Read additional types from this file
179 or warn "$P: Can't find a readable $configuration_file file $!\n";
217 'f|file!' => \$file,
231 'summary-file!' => \$summary_file,
255 die "$P: --git cannot be used with --file or --fix\n" if ($git && ($file || $fix));
588 ["debugfs_create_(?:file|u8|u16|u32|u64|x8|x16|x32|x64|size_t|atomic_t|bool|blob|regset32|u32_array)", 2],
721 warn "No typos will be found - file '$spelling_file': $!\n";
744 warn "No codespell typos will be found - file '$codespellfile': $!\n";
751 my ($wordsRef, $file) = @_;
753 if (open(my $words, '<', $file)) {
763 print("$file: '$line' invalid - ignored\n");
770 close($file);
780 or warn "No structs that should be const will be found - file '$conststructsfile': $!\n";
786 or warn "No additional types will be considered - file '$typedefsfile': $!\n";
871 my ($file) = @_;
873 return if (!(-f $file));
877 open(my $include_file, '<', "$file")
878 or warn "$P: Can't read '$file' $!\n";
939 foreach my $file (@include_files) {
941 localtime((stat $file)[9]));
964 foreach my $file (@include_files) {
965 seed_camelcase_file($file);
1020 $chk_signoff = 0 if ($file);
1063 my $oldfile = $file;
1064 $file = 1 if ($is_git_file);
1068 } elsif ($file) {
1109 $file = $oldfile if ($is_git_file);
2244 my $file = $absolute;
2249 while ($file =~ s@^[^/]*/@@) {
2250 if (-f "$root/$file") {
2251 ##print "file<$file>\n";
2261 substr($prefix, -length($file)) = '';
2381 my $in_header_lines = $file ? 0 : 1;
2401 # Trace the real file/line as we go.
2533 #extract the line range in the file after the patch is applied
2582 $here = "#$linenr: " if (!$file);
2583 $here = "#$realline: " if ($file);
2589 $realfile =~ s@^([^/]*)/@@ if (!$file);
2594 $realfile =~ s@^([^/]*)/@@ if (!$file);
2598 if (!$file && $tree && $p1_prefix ne '' &&
2615 if ($file) {
2680 # Check for incorrect file permissions
2681 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
2748 # emit the "does MAINTAINERS need updating?" message on file add/move/delete
2868 # file delta changes
2946 ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
2953 "added, moved or deleted file(s), does MAINTAINERS need updating?\n" . $herecurr);
2958 ($line =~ /^new file mode\s*\d+\s*$/) &&
2964 # Check for wrappage within a valid hunk of the file
3011 my $file = $1;
3013 if ($file =~ m{^(.*?)(?::\d+)+:?$} &&
3017 check_absolute_file($file, $herecurr);
3031 $msg_level = \&CHK if ($file);
3116 $msg_level = \&CHK if ($file);
3141 last if (!$file && $f =~ /^\@\@/);
3206 "Misordered MAINTAINERS entry - list file patterns in alphabetic order\n" . $hereprev);
3301 $msg_level = \&CHK if ($file);
3316 "It's generally not useful to have the filename in the file\n" . $herecurr);
3319 # check we are in a valid source file if not then ignore this hunk
3388 $msg_level = \&CHK if ($file);
3395 if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file/) {
3397 "adding a line without newline at end of file\n" . $herecurr);
3400 # check we are in a valid source file C or perl if not then ignore this hunk
3642 # check we are in a valid C source file if not then ignore this hunk
4309 $msg_level = \&CHK if ($file);
4368 if (!$file && $line =~ /\bENOTSUPP\b/) {
5310 if (!$file && !$camelcase_file_seeded) {
5336 my $file = "$1.h";
5337 my $checkfile = "include/linux/$file";
5342 my $asminclude = `grep -Ec "#include\\s+<asm/$file>" $root/$checkfile`;
5346 "Consider using #include <linux/$file> instead of <asm/$file>\n" . $herecurr);
5349 "Use #include <linux/$file> instead of <asm/$file>\n" . $herecurr);
5744 # This does not work very well for -f --file checking as it depends on patch
5745 # context providing the function name or a single line form for in-file
6652 $msg_level = \&CHK if ($file);
7058 if ($file) {
7074 Do _NOT_ trust the results written to this file.
7077 This EXPERIMENTAL file is simply a convenience to help rewrite patches.