mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"Lee, Chun-Yi" <jlee@suse.com>,
	Benjamin Poirier <bpoirier@suse.com>
Subject: [for-next][PATCH 1/6] localmodconfig: Fix parsing of Kconfig "source" statements
Date: Tue, 26 Apr 2016 18:44:11 -0400	[thread overview]
Message-ID: <20160426224442.444607285@goodmis.org> (raw)
In-Reply-To: <20160426224410.186640776@goodmis.org>

[-- Attachment #1: 0001-localmodconfig-Fix-parsing-of-Kconfig-source-stateme.patch --]
[-- Type: text/plain, Size: 1055 bytes --]

From: Benjamin Poirier <bpoirier@suse.com>

The parameter of Kconfig "source" statements does not need to be quoted.
The current regex causes many kconfig files to be skipped and hence,
dependencies to be missed.

Also fix the whitespace repeat count.

Link: http://lkml.kernel.org/r/1459619722-13695-1-git-send-email-bpoirier@suse.com

Tested-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 scripts/kconfig/streamline_config.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index f3d3fb42b873..7036ae306db6 100755
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -188,7 +188,7 @@ sub read_kconfig {
 	$cont = 0;
 
 	# collect any Kconfig sources
-	if (/^source\s*"(.*)"/) {
+	if (/^source\s+"?([^"]+)/) {
 	    my $kconfig = $1;
 	    # prevent reading twice.
 	    if (!defined($read_kconfigs{$kconfig})) {
-- 
2.8.0.rc3

  reply	other threads:[~2016-04-26 22:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-26 22:44 [for-next][PATCH 0/6] localmodconfig: Updates for 4.7 Steven Rostedt
2016-04-26 22:44 ` Steven Rostedt [this message]
2016-04-26 22:44 ` [for-next][PATCH 2/6] localmodconfig: Recognize more keywords that end a menu entry Steven Rostedt
2016-04-26 22:44 ` [for-next][PATCH 3/6] localmodconfig: Fix parsing of "help" text Steven Rostedt
2016-04-26 22:44 ` [for-next][PATCH 4/6] localmodconfig: Add missing $ to reference a variable Steven Rostedt
2016-04-26 22:44 ` [for-next][PATCH 5/6] localmodconfig: Reset certificate paths Steven Rostedt
2016-04-26 22:44 ` [for-next][PATCH 6/6] localmodconfig: Fix whitespace repeat count after "tristate" 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=20160426224442.444607285@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=bpoirier@suse.com \
    --cc=jlee@suse.com \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome