Skip to content

Commit

Permalink
kconfig: Fix variable name typo %prompts in streamline_config.pl
Browse files Browse the repository at this point in the history
When I added "use strict;" to streamline_config.pl, I saw the following
warnings:

> Global symbol "%prompt" requires explicit package name at
scripts/kconfig/streamline_config.pl line 183.
> Global symbol "%prompt" requires explicit package name at
scripts/kconfig/streamline_config.pl line 368.

The declaration of %prompt was incorrect, and should have been %prompts.

Cc: Toralf Foerster <toralf.foerster@gmx.de>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Hiromu Yakura <hiromu1996@gmail.com>
LKML-Reference: <1281845597.11566.5.camel@camp10-laptop>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
hiromu yagura authored and Steven Rostedt committed Oct 29, 2010
1 parent 4908980 commit ccece60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ sub read_kconfig {
# configs without prompts must be selected
} elsif ($state ne "NONE" && /^\s*tristate\s\S/) {
# note if the config has a prompt
$prompt{$config} = 1;
$prompts{$config} = 1;

# Check for if statements
} elsif (/^if\s+(.*\S)\s*$/) {
Expand Down Expand Up @@ -373,7 +373,7 @@ sub parse_config_dep_select
parse_config_dep_select $depends{$config};
}

if (defined($prompt{$config}) || !defined($selects{$config})) {
if (defined($prompts{$config}) || !defined($selects{$config})) {
next;
}

Expand Down

0 comments on commit ccece60

Please sign in to comment.