Kernel Newbies archive on
 help / color / Atom feed
* [PATCH] scripts/ - fix list of directories to check
@ 2019-05-12  7:40 Valdis Klētnieks
  2019-05-13  6:39 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Valdis Klētnieks @ 2019-05-12  7:40 UTC (permalink / raw)
  To: Andrew Morton, Deepak Mishra, Christoph Hellwig, Thomas Gleixner,
	Jeremy Cline
  Cc: linux-kernel, kernelnewbies

After this commit:

commit 62be257e986dab439537b3e1c19ef746a13e1860
Author: Christoph Hellwig <>
Date:   Tue Apr 30 06:51:30 2019 -0400

    LICENSES: Rename other to deprecated

checkpatch throws an error:

[/usr/src/linux-next]2 scripts/ -f drivers/staging/rtl8712/rtl871x_rf.h
FAIL: "Blob or Tree named 'other' not found"
Traceback (most recent call last):
  File "scripts/", line 240, in <module>
    spdx = read_spdxdata(repo)
  File "scripts/", line 41, in read_spdxdata
    for el in lictree[d].traverse():
  File "/usr/lib/python2.7/site-packages/git/objects/", line 298, in __getitem__
    return self.join(item)
  File "/usr/lib/python2.7/site-packages/git/objects/", line 244, in join
    raise KeyError(msg % file)
KeyError: "Blob or Tree named 'other' not found"

Fix directory search list. Pick up the new LICENSES/dual while we're there...

Reported-by: Deepak Mishra <>
Signed-off-by: Valdis Kletnieks <>

diff --git a/scripts/ b/scripts/
index 4fe392e507fb..7abd5f5cb14d 100755
--- a/scripts/
+++ b/scripts/
@@ -32,7 +32,7 @@ import os
 def read_spdxdata(repo):
     # The subdirectories of LICENSES in the kernel source
-    license_dirs = [ "preferred", "other", "exceptions" ]
+    license_dirs = [ "preferred", "dual", "deprecated", "exceptions" ]
     lictree = repo.head.commit.tree['LICENSES']
     spdx = SPDXdata()

Kernelnewbies mailing list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-12  7:40 [PATCH] scripts/ - fix list of directories to check Valdis Klētnieks
2019-05-13  6:39 ` Christoph Hellwig

Kernel Newbies archive on

Archives are clonable:
	git clone --mirror kernelnewbies/git/0.git

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

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox