LKML Archive on
 help / color / Atom feed
From: Jerome Forissier <>
To: Andy Whitcroft <>, Joe Perches <>,
Cc: Jerome Forissier <>
Subject: [PATCH] checkpatch: don't try to get maintained status when --no-tree is given
Date: Mon, 17 Oct 2016 17:55:09 +0200
Message-ID: <> (raw)

Fixes the following warning:
Use of uninitialized value $root in concatenation (.) or string at /path/to/ line 764.

Signed-off-by: Jerome Forissier <>
 scripts/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ b/scripts/
index a8368d1..aa694bc 100755
--- a/scripts/
+++ b/scripts/
@@ -761,7 +761,7 @@ sub seed_camelcase_file {
 sub is_maintained_obsolete {
 	my ($filename) = @_;
-	return 0 if (!(-e "$root/scripts/"));
+	return 0 if (!$tree || !(-e "$root/scripts/"));
 	my $status = `perl $root/scripts/ --status --nom --nol --nogit --nogit-fallback -f $filename 2>&1`;

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-17 15:55 Jerome Forissier [this message]
2016-10-17 16:56 ` Joe Perches

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:

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

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

LKML Archive on

Archives are clonable:
	git clone --mirror lkml/git/0.git
	git clone --mirror lkml/git/1.git
	git clone --mirror lkml/git/2.git
	git clone --mirror lkml/git/3.git
	git clone --mirror lkml/git/4.git
	git clone --mirror lkml/git/5.git
	git clone --mirror lkml/git/6.git
	git clone --mirror lkml/git/7.git
	git clone --mirror lkml/git/8.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ \
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone