summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/lint/kconfig_lint7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint
index 8bdca8d09b..2fbaf97f5c 100755
--- a/util/lint/kconfig_lint
+++ b/util/lint/kconfig_lint
@@ -993,12 +993,17 @@ sub handle_prompt {
}
my $sym_num = $symbols{$inside_config}{count};
- unless ( exists $symbols{$inside_config}{$sym_num}{prompt_max} ) {
+ if ( !exists $symbols{$inside_config}{$sym_num}{prompt_max} ) {
$symbols{$inside_config}{$sym_num}{prompt_max} = 0;
}
+ else {
+ $symbols{$inside_config}{$sym_num}{prompt_max}++;
+ }
my $prompt_max = $symbols{$inside_config}{$sym_num}{prompt_max};
$symbols{$inside_config}{$sym_num}{prompt}{$prompt_max}{prompt} = $prompt;
$symbols{$inside_config}{$sym_num}{prompt}{$prompt_max}{prompt_line_no} = $line_no;
+
+ $symbols{$inside_config}{$sym_num}{prompt}{$prompt_max}{prompt_menu} = @$menu_array_ref;
if ($expression) {
$symbols{$inside_config}{$sym_num}{prompt}{$prompt_max}{prompt_depends_on} = $expression;
}