* Checkpatch.pl FAIL: "Blob or Tree named 'other' not found"
@ 2019-05-12 6:15 Deepak Mishra
2019-05-12 7:41 ` Valdis Klētnieks
0 siblings, 1 reply; 3+ messages in thread
From: Deepak Mishra @ 2019-05-12 6:15 UTC (permalink / raw)
To: kernelnewbies
[-- Attachment #1.1: Type: text/plain, Size: 1157 bytes --]
Hi all,
I am trying to run checkpatch.pl on latest kernel version 5.1.0 source tree
from orig head 80f232121b69cc69a31ccb2b38c1665d770b0710
When I run checkpatch.pl, for every file I get the follwong or similar
error. Could you please help if this is my environment issue or actually
error in code which I need to fix ?
I executed the following in command prompt.
perl scripts/checkpatch.pl -f drivers/staging/rtl8712/* |less
The error I observe
drivers/staging/rtl8712/rtl871x_rf.h
------------------------------------
FAIL: "Blob or Tree named 'other' not found"
Traceback (most recent call last):
File "scripts/spdxcheck.py", line 240, in <module>
spdx = read_spdxdata(repo)
File "scripts/spdxcheck.py", line 41, in read_spdxdata
for el in lictree[d].traverse():
File "/usr/lib/python2.7/dist-packages/git/objects/tree.py", line 298, in
__getitem__
return self.join(item)
File "/usr/lib/python2.7/dist-packages/git/objects/tree.py", line 244, in
join
raise KeyError(msg % file)
KeyError: "Blob or Tree named 'other' not found"
total: 0 errors, 0 warnings, 0 checks, 56 lines checked
Please suggest me.
Best Regards
Mishradk
[-- Attachment #1.2: Type: text/html, Size: 1851 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Checkpatch.pl FAIL: "Blob or Tree named 'other' not found"
2019-05-12 6:15 Checkpatch.pl FAIL: "Blob or Tree named 'other' not found" Deepak Mishra
@ 2019-05-12 7:41 ` Valdis Klētnieks
2019-05-12 8:15 ` Deepak Mishra
0 siblings, 1 reply; 3+ messages in thread
From: Valdis Klētnieks @ 2019-05-12 7:41 UTC (permalink / raw)
To: Deepak Mishra; +Cc: kernelnewbies
On Sun, 12 May 2019 11:45:24 +0530, Deepak Mishra said:
> When I run checkpatch.pl, for every file I get the follwong or similar
> error. Could you please help if this is my environment issue or actually
> error in code which I need to fix ?
>
> I executed the following in command prompt.
> perl scripts/checkpatch.pl -f drivers/staging/rtl8712/* |less
>
> The error I observe
> drivers/staging/rtl8712/rtl871x_rf.h
Found the problem, patch submitted. It's a one-line fix:
diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py
index 4fe392e507fb..7abd5f5cb14d 100755
--- a/scripts/spdxcheck.py
+++ b/scripts/spdxcheck.py
@@ -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']
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Checkpatch.pl FAIL: "Blob or Tree named 'other' not found"
2019-05-12 7:41 ` Valdis Klētnieks
@ 2019-05-12 8:15 ` Deepak Mishra
0 siblings, 0 replies; 3+ messages in thread
From: Deepak Mishra @ 2019-05-12 8:15 UTC (permalink / raw)
To: Valdis Klētnieks; +Cc: kernelnewbies
[-- Attachment #1.1: Type: text/plain, Size: 1232 bytes --]
Thanks Valdis,
After applying the patch, I verified in my environment and the patch has
fixed the issue.
Best Regards
MishraDk
On Sun, May 12, 2019 at 1:12 PM Valdis Klētnieks <valdis.kletnieks@vt.edu>
wrote:
> On Sun, 12 May 2019 11:45:24 +0530, Deepak Mishra said:
>
> > When I run checkpatch.pl, for every file I get the follwong or similar
> > error. Could you please help if this is my environment issue or actually
> > error in code which I need to fix ?
> >
> > I executed the following in command prompt.
> > perl scripts/checkpatch.pl -f drivers/staging/rtl8712/* |less
> >
> > The error I observe
> > drivers/staging/rtl8712/rtl871x_rf.h
>
> Found the problem, patch submitted. It's a one-line fix:
>
> diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py
> index 4fe392e507fb..7abd5f5cb14d 100755
> --- a/scripts/spdxcheck.py
> +++ b/scripts/spdxcheck.py
> @@ -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']
>
>
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 1872 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-12 8:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-12 6:15 Checkpatch.pl FAIL: "Blob or Tree named 'other' not found" Deepak Mishra
2019-05-12 7:41 ` Valdis Klētnieks
2019-05-12 8:15 ` Deepak Mishra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).