mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Revert "checkpatch: add check for too short Kconfig descriptions"
This reverts commit 3354957a4f
.
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
(cherry picked from commit 6839bfe7291e24589884af37de8622ff2bea31e6)
This commit is contained in:
parent
cc32440107
commit
fa3e178ef5
1 changed files with 0 additions and 15 deletions
|
@ -1842,21 +1842,6 @@ sub process {
|
|||
"Use of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacement->{$flag});
|
||||
}
|
||||
|
||||
# check for Kconfig help text having a real description
|
||||
if ($realfile =~ /Kconfig/ &&
|
||||
$line =~ /\+?\s*(---)?help(---)?$/) {
|
||||
my $length = 0;
|
||||
for (my $l = $linenr; defined($lines[$l]); $l++) {
|
||||
my $f = $lines[$l];
|
||||
$f =~ s/#.*//;
|
||||
$f =~ s/^\s+//;
|
||||
next if ($f =~ /^$/);
|
||||
last if ($f =~ /^\s*config\s/);
|
||||
$length++;
|
||||
}
|
||||
WARN("please write a paragraph that describes the config symbol fully\n" . $herecurr) if ($length < 4);
|
||||
}
|
||||
|
||||
# check we are in a valid source file if not then ignore this hunk
|
||||
next if ($realfile !~ /\.(h|c|s|S|pl|sh)$/);
|
||||
|
||||
|
|
Loading…
Reference in a new issue