mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: hiromu yagura <hiromu1996@gmail.com>
Cc: linux-kernel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>,
	Toralf Foerster <toralf.foerster@gmx.de>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Subject: Re: [PATCH] kconfig: Fix variable name typo in streamline_config.pl.
Date: Tue, 17 Aug 2010 13:43:18 +0800	[thread overview]
Message-ID: <20100817054318.GC5095@cr0.nay.redhat.com> (raw)
In-Reply-To: <1281845597.11566.5.camel@camp10-laptop>

On Sun, Aug 15, 2010 at 01:13:17PM +0900, hiromu yagura wrote:
>When I added "use strict;" to streamline_config.pl, I saw 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.
>
>Let's fix it.
>(Note: prompts[] is defined at line 123 but never used. This seems
>typo.)
>
>Cc: Steven Rostedt <rostedt@goodmis.org>
>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>


Acked-by: WANG Cong <xiyou.wangcong@gmail.com>

BTW, I think we should add "use strict;" too.

>---
> scripts/kconfig/streamline_config.pl |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/scripts/kconfig/streamline_config.pl
>b/scripts/kconfig/streamline_config.pl
>index c70a27d..d74363f 100644
>--- a/scripts/kconfig/streamline_config.pl
>+++ b/scripts/kconfig/streamline_config.pl
>@@ -178,7 +178,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*$/) {
>@@ -363,7 +363,7 @@ while ($repeat) {
> 	    parse_config_dep_select $depends{$config};
> 	}
> 
>-	if (defined($prompt{$config}) || !defined($selects{$config})) {
>+	if (defined($prompts{$config}) || !defined($selects{$config})) {
> 	    next;
> 	}
> 
>-- 
>1.7.0.4
>
>
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

  reply	other threads:[~2010-08-17  5:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15  4:13 hiromu yagura
2010-08-17  5:43 ` Américo Wang [this message]
2010-08-17 10:49   ` hiromu
2010-08-17 12:58     ` Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100817054318.GC5095@cr0.nay.redhat.com \
    --to=xiyou.wangcong@gmail.com \
    --cc=hiromu1996@gmail.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=toralf.foerster@gmx.de \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®