summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-02-24 04:47:05 +0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-02-24 04:47:05 +0400
commit8aaaaf3cbfb96a9f74c5775c71067a9290244ec7 (patch)
tree67349c6a69740150b67c4c39de49cde9b3648aa5 /scripts/checkpatch.pl
parent94f61a7666224ab307e387ff0d146055ae77e6ab (diff)
parente29206381a1436e0f47c0f5b9a23159a03c57715 (diff)
downloadlinux-8aaaaf3cbfb96a9f74c5775c71067a9290244ec7.tar.xz
Merge branch 'fbdev-for-linus' into fbdev-next
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e3bfcbe8a520..a3b9782441f9 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1924,6 +1924,12 @@ sub process {
my $pre_ctx = "$1$2";
my ($level, @ctx) = ctx_statement_level($linenr, $realcnt, 0);
+
+ if ($line =~ /^\+\t{6,}/) {
+ WARN("DEEP_INDENTATION",
+ "Too many leading tabs - consider code refactoring\n" . $herecurr);
+ }
+
my $ctx_cnt = $realcnt - $#ctx - 1;
my $ctx = join("\n", @ctx);