Skip to content
Snippets Groups Projects
Select Git revision
  • cf914a7d656e62b9dd3e0dffe4f62b953ae6048d
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

readahead.c

Blame
  • checkpatch.pl 218.83 KiB
    #!/usr/bin/env perl
    # SPDX-License-Identifier: GPL-2.0
    #
    # (c) 2001, Dave Jones. (the file handling bit)
    # (c) 2005, Joel Schopp <jschopp@austin.ibm.com> (the ugly bit)
    # (c) 2007,2008, Andy Whitcroft <apw@uk.ibm.com> (new conditions, test suite)
    # (c) 2008-2010 Andy Whitcroft <apw@canonical.com>
    # (c) 2010-2018 Joe Perches <joe@perches.com>
    
    use strict;
    use warnings;
    use POSIX;
    use File::Basename;
    use Cwd 'abs_path';
    use Term::ANSIColor qw(:constants);
    use Encode qw(decode encode);
    
    my $P = $0;
    my $D = dirname(abs_path($P));
    
    my $V = '0.32';
    
    use Getopt::Long qw(:config no_auto_abbrev);
    
    my $quiet = 0;
    my $tree = 1;
    my $chk_signoff = 1;
    my $chk_patch = 1;
    my $tst_only;
    my $emacs = 0;
    my $terse = 0;
    my $showfile = 0;
    my $file = 0;
    my $git = 0;
    my %git_commits = ();
    my $check = 0;
    my $check_orig = 0;
    my $summary = 1;
    my $mailback = 0;
    my $summary_file = 0;
    my $show_types = 0;
    my $list_types = 0;
    my $fix = 0;
    my $fix_inplace = 0;
    my $root;
    my $gitroot = $ENV{'GIT_DIR'};
    $gitroot = ".git" if !defined($gitroot);
    my %debug;
    my %camelcase = ();
    my %use_type = ();
    my @use = ();
    my %ignore_type = ();
    my @ignore = ();
    my $help = 0;
    my $configuration_file = ".checkpatch.conf";
    my $max_line_length = 100;
    my $ignore_perl_version = 0;
    my $minimum_perl_version = 5.10.0;
    my $min_conf_desc_length = 4;
    my $spelling_file = "$D/spelling.txt";
    my $codespell = 0;
    my $codespellfile = "/usr/share/codespell/dictionary.txt";
    my $conststructsfile = "$D/const_structs.checkpatch";
    my $typedefsfile;
    my $color = "auto";
    my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE
    # git output parsing needs US English output, so first set backtick child process LANGUAGE
    my $git_command ='export LANGUAGE=en_US.UTF-8; git';
    my $tabsize = 8;
    my ${CONFIG_} = "CONFIG_";