From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:59126 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759537Ab0E0TwJ (ORCPT ); Thu, 27 May 2010 15:52:09 -0400 Subject: Re: [PATCH] streamline_config.pl: use references rather than copied data structures From: Steven Rostedt Reply-To: rostedt@goodmis.org In-Reply-To: <201005271624.44746.toralf.foerster@gmx.de> References: <201005271342.09066.toralf.foerster@gmx.de> <1274965649.22648.263.camel@gandalf.stny.rr.com> <201005271624.44746.toralf.foerster@gmx.de> Content-Type: text/plain; charset="ISO-8859-15" Date: Thu, 27 May 2010 15:52:06 -0400 Message-ID: <1274989926.22648.281.camel@gandalf.stny.rr.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Toralf =?ISO-8859-1?Q?F=F6rster?= Cc: zippel@linux-m68k.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, 2010-05-27 at 16:24 +0200, Toralf Förster wrote: > Understood and accepted. > > What's about the following 2 snippets (a trivial typo and an attempt to > prevent a possible trap) ? : > Can you make a proper patch out of this (with signed-off-by as well). Also your patches have major whitespace damage. Could you fix your mail client. Thanks, -- Steve > > 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; > } > >