Skip to content
Snippets Groups Projects
Select Git revision
  • d472d9d98b463dd7a04f2bcdeafe4261686ce6ab
  • 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

lockref.c

Blame
  • checkpatch.pl 185.01 KiB
    #!/usr/bin/perl -w
    # (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>
    # Licensed under the terms of the GNU GPL License version 2
    
    use strict;
    use POSIX;
    use File::Basename;
    use Cwd 'abs_path';
    use Term::ANSIColor qw(:constants);
    
    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 %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 = 80;
    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 $color = 1;
    my $allow_c99_comments = 1;
    
    sub help {
    	my ($exitcode) = @_;
    
    	print << "EOM";
    Usage: $P [OPTION]... [FILE]...
    Version: $V
    
    Options:
      -q, --quiet                quiet
      --no-tree                  run without a kernel tree