@@ -35,6 +35,8 @@ my $help = 0;
my $configuration_file = ".checkpatch.conf";
my $max_line_length = 80;
+my $realfile = '';
+
sub help {
my ($exitcode) = @_;
@@ -1287,7 +1289,9 @@ sub WARN {
}
}
sub CHK {
- if ($check && report("CHECK", $_[0], $_[1])) {
+ if ($realfile =~ m@^(drivers/net|net/)@) {
+ WARN($_[0], $_[1]);
+ } elsif ($check && report("CHECK", $_[0], $_[1])) {
our $clean = 0;
our $cnt_chk++;
}
@@ -1381,7 +1385,7 @@ sub process {
our $cnt_chk = 0;
# Trace the real file/line as we go.
- my $realfile = '';
+ $realfile = '';
my $realline = 0;
my $realcnt = 0;
my $here = '';