summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-02-16 21:22:53 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-03-26 02:03:56 +0900
commit86adf1a07e896f19a799abe65e3f4a1a26ac142e (patch)
tree1b7fd8e4bfbb1431922dde2aa5f33f25ebf4da5c
parent0c8efd610b58cb23cefdfa12015799079aef94ae (diff)
downloadlwn-86adf1a07e896f19a799abe65e3f4a1a26ac142e.tar.gz
lwn-86adf1a07e896f19a799abe65e3f4a1a26ac142e.zip
checkpatch: kconfig: recognize more prompts when checking help texts
The check for a missing or short help text only considers symbols with a prompt, but doesn't recognize any of the following as a prompt: bool 'foo' tristate 'foo' prompt "foo" prompt 'foo' Make the check recognize those too. Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3d4040322ae1..2b404317daea 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2812,7 +2812,7 @@ sub process {
next if ($f =~ /^-/);
last if (!$file && $f =~ /^\@\@/);
- if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate)\s*\"/) {
+ if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate|prompt)\s*["']/) {
$is_start = 1;
} elsif ($lines[$ln - 1] =~ /^\+\s*(?:---)?help(?:---)?$/) {
$length = -1;