[PATCH] checkpatch.pl: be more specific about what is wrong with Kconfig help
From: Tomas Winkler
Date: Mon Jan 31 2011 - 07:01:25 EST
explain that Kconfig help paragraphs is expected to be at least 4 lines
long
Cc: Andy Whitcroft <apw@xxxxxxxxxxxxx>
Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
---
scripts/checkpatch.pl | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 4c0383d..679122f 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1452,7 +1452,9 @@ sub process {
}
$length++;
}
- WARN("please write a paragraph that describes the config symbol fully\n" . $herecurr) if ($is_end && $length < 4);
+ if ($is_end && $length < 4) {
+ WARN("please write a paragraph that describes the config symbol fully, at least 4 lines\n" . $herecurr);
+ }
#print "is_end<$is_end> length<$length>\n";
}
--
1.7.3.5
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/