diff --git a/[refs] b/[refs] index 5f4be435cd8f..c14ab0601326 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7840a94cd12559d8aee6382fafb85fbc9eb3a2c2 +refs/heads/master: 5f7ddae6104d85e27c0fbcb508cfe8286a01a5e1 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 315faf99effd..d7a44fd3b224 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -1454,6 +1454,13 @@ sub process { WARN("please, no space before tabs\n" . $herevet); } +# check for spaces at the beginning of a line. + if ($rawline =~ /^\+ / && $rawline !~ /\+ +\*/) { + my $herevet = "$here\n" . cat_vet($rawline) . "\n"; + WARN("please, no space for starting a line, \ + excluding comments\n" . $herevet); + } + # check we are in a valid C source file if not then ignore this hunk next if ($realfile !~ /\.(h|c)$/);