From patchwork Fri Oct 29 05:43:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 289332 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9T5jF1b012992 for ; Fri, 29 Oct 2010 05:45:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753019Ab0J2Fop (ORCPT ); Fri, 29 Oct 2010 01:44:45 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:37528 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752427Ab0J2Fo1 (ORCPT ); Fri, 29 Oct 2010 01:44:27 -0400 X-Authority-Analysis: v=1.1 cv=6ptpMFIBtxRk0xdOb6IhJTbTLVRlKjWFes7R4SsWCrA= c=1 sm=0 a=-7ZraIGOge4A:10 a=bbbx4UPp9XUA:10 a=OPBmh+XkhLl+Enan7BmTLg==:17 a=pGLkceISAAAA:8 a=omOdbC7AAAAA:8 a=h1aNt0RaAAAA:8 a=meVymXHHAAAA:8 a=9wWOKH-WM6l7ght3Bq0A:9 a=XLVRj-_yJqwU5KrLzEUA:7 a=8gMXIGigRGgWJKkwTZUAOtJdSpYA:4 a=MSl-tDqOz04A:10 a=_RhRFcbxBZMA:10 a=9n0VZpmWo7gA:10 a=jeBq3FmKZ4MA:10 a=HKqJki_6tSJPTga2:21 a=XAYtitudVnrUNiRB:21 a=OPBmh+XkhLl+Enan7BmTLg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.242.120.143 Received: from [67.242.120.143] ([67.242.120.143:46388] helo=gandalf.stny.rr.com) by hrndva-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id C0/30-26142-83F5ACC4; Fri, 29 Oct 2010 05:44:25 +0000 Received: from rostedt by gandalf.stny.rr.com with local (Exim 4.72) (envelope-from ) id 1PBhlI-0004vX-67; Fri, 29 Oct 2010 01:44:24 -0400 Message-Id: <20101029054424.066991090@goodmis.org> User-Agent: quilt/0.48-1 Date: Fri, 29 Oct 2010 01:43:13 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Andrew Morton , Michal Marek , linux-kbuild@vger.kernel.org, =?ISO-8859-15?q?Am=C3=A9rico=20Wang?= , Toralf Foerster , KAMEZAWA Hiroyuki , YOSHIFUJI Hideaki , Hiromu Yakura Subject: [PATCH 3/5] [PATCH 3/5] kconfig: Fix missing declaration of variable $dir in streamline_config.pl References: <20101029054310.790179545@goodmis.org> Content-Disposition: inline; filename=0003-kconfig-Fix-missing-declaration-of-variable-dir-in-s.patch 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 (demeter1.kernel.org [140.211.167.41]); Fri, 29 Oct 2010 05:45:15 +0000 (UTC) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 3c63aa9..883748c 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -42,6 +42,8 @@ # mv config_strip .config # make oldconfig # +use strict; + my $config = ".config"; my $uname = `uname -r`; @@ -291,7 +293,7 @@ if (defined($lsmod_file)) { # see what modules are loaded on this system my $lsmod; - foreach $dir ( ("/sbin", "/bin", "/usr/sbin", "/usr/bin") ) { + foreach my $dir ( ("/sbin", "/bin", "/usr/sbin", "/usr/bin") ) { if ( -x "$dir/lsmod" ) { $lsmod = "$dir/lsmod"; last;