Skip to content

Commit 86adf1a

Browse files
ulfalizermasahir0y
authored andcommitted
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>
1 parent 0c8efd6 commit 86adf1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2812,7 +2812,7 @@ sub process {
28122812
next if ($f =~ /^-/);
28132813
last if (!$file && $f =~ /^\@\@/);
28142814

2815-
if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate)\s*\"/) {
2815+
if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate|prompt)\s*["']/) {
28162816
$is_start = 1;
28172817
} elsif ($lines[$ln - 1] =~ /^\+\s*(?:---)?help(?:---)?$/) {
28182818
$length = -1;

0 commit comments

Comments
 (0)