From patchwork Thu May 27 14:24:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Toralf_F=C3=B6rster?= X-Patchwork-Id: 102697 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4REOnoj013059 for ; Thu, 27 May 2010 14:24:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754176Ab0E0OYt (ORCPT ); Thu, 27 May 2010 10:24:49 -0400 Received: from mail.gmx.net ([213.165.64.20]:52534 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753608Ab0E0OYs convert rfc822-to-8bit (ORCPT ); Thu, 27 May 2010 10:24:48 -0400 Received: (qmail invoked by alias); 27 May 2010 14:24:45 -0000 Received: from e177120013.adsl.alicedsl.de (EHLO n22.localnet) [85.177.120.13] by mail.gmx.net (mp018) with SMTP; 27 May 2010 16:24:45 +0200 X-Authenticated: #5108953 X-Provags-ID: V01U2FsdGVkX1/tgPAVMC7tnPd3o0VTuig+hTvr1UlTVNdVPnBVeb 2e5CmzKhlcARSl From: Toralf =?iso-8859-1?q?F=F6rster?= To: rostedt@goodmis.org Subject: Re: [PATCH] streamline_config.pl: use references rather than copied data structures Date: Thu, 27 May 2010 16:24:44 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.34; KDE/4.4.3; i686; ; ) Cc: zippel@linux-m68k.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org References: <201005271342.09066.toralf.foerster@gmx.de> <1274965649.22648.263.camel@gandalf.stny.rr.com> In-Reply-To: <1274965649.22648.263.camel@gandalf.stny.rr.com> MIME-Version: 1.0 Message-Id: <201005271624.44746.toralf.foerster@gmx.de> X-Y-GMX-Trusted: 0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 27 May 2010 14:24:49 +0000 (UTC) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index afbd54a..3f54911 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -242,7 +242,7 @@ foreach my $makefile (@makefiles) { foreach my $obj (split /\s+/,$objs) { $obj =~ s/-/_/g; if ($obj =~ /(.*)\.o$/) { - # Objects may bes enabled by more than one config. + # Objects may be enabled by more than one config. # Store configs in an array. my @arr; diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index afbd54a..9726946 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -307,7 +307,7 @@ close (LIN); my %configs; foreach my $module (keys(%modules)) { if (defined($objects{$module})) { - @arr = @{$objects{$module}}; + my @arr = @{$objects{$module}}; foreach my $conf (@arr) { $configs{$conf} = $module; }