diff --git a/[refs] b/[refs] index e8a581e43944..2b85cf9b24e0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6bd113f1f4a8c0d05c4dbadb300319e0e3526db4 +refs/heads/master: 8eef05dd3e70233f3e391774d612dab44c3f023b diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index e3bfcbe8a520..a3b9782441f9 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/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);