Checkpatch.pl FAIL: "Blob or Tree named 'other' not found"

2019-05-11 Thread Deepak Mishra
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 
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
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: how to determine whether the source code is same between two kernels

2019-05-11 Thread chiachen
You could use "Beyond Compare" to compare these two bin or source files.

Valdis Klētnieks  于2019年5月11日周六 下午9:53写道:

> On Sat, 11 May 2019 09:20:22 -0400, Aruna Hewapathirane said:
>
> > Seriously ? Since when are you working for turing-police ?
>
> I'm semi-retired. :)
>
> And there's two other systems in the room called wintermute and
> neuromancer.
> Hopefully you can figure it out from there. :)
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: how to determine whether the source code is same between two kernels

2019-05-11 Thread Valdis Klētnieks
On Sat, 11 May 2019 09:20:22 -0400, Aruna Hewapathirane said:

> Seriously ? Since when are you working for turing-police ?

I'm semi-retired. :)

And there's two other systems in the room called wintermute and neuromancer.
Hopefully you can figure it out from there. :)


pgpCqPU2a9tRj.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: how to determine whether the source code is same between two kernels

2019-05-11 Thread Aruna Hewapathirane
On Fri, May 10, 2019 at 11:58 PM Valdis Klētnieks 
wrote:

> On Fri, 10 May 2019 22:11:31 -0400, Aruna Hewapathirane said:
>
> > > Suppose I have two kernels, one is A.B.C build by people Tom. And
> > > the other is A.B.C build by Jerry. The source code have been deleted
>
> > Run diff vmlinuz-Tom vmlinuz-Jerry and see if they differ. Then just  to
>
> Don't even bother.  If Tom and Jerry both did builds, the binaries *will*
> differ, because...
>
> % dmesg | grep 'Linux vers'
> [0.00] Linux version 5.1.0-rc5-next-20190416-dirty
> (source@turing-police) (gcc version 9.0.1 20190328 (Red Hat 9.0.1-0.12)
> (GCC)) #664 SMP PREEMPT Wed Apr 17 12:31:51 EDT 2019
>

Seriously ? Since when are you working for turing-police ? But yes
agreed...  at least it gives someone a
reasonably sane path to follow... nothing lost in trying right :)


> There's a datestamp, a build number, and a compiler version in there.
>
> Also, since vmlinuz is a binary file, /bin/cmp is a better choice than
> diff.
>
Agreed.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies