* Checkpatch.pl warning
@ 2015-08-08 17:49 Shraddha Barke
2015-08-08 18:42 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Shraddha Barke @ 2015-08-08 17:49 UTC (permalink / raw)
To: kernelnewbies
I have come across the following checkpatch.pl warning a number of times:
WARNING: Prefer ether_addr_equal() or ether_addr_equal_unaligned() over
memcmp()
What exactly does it mean?
What is the fix for this warning?
Any help or links to appropriate Documentation will be good.
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150808/e5bb0f7c/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Checkpatch.pl warning
2015-08-08 17:49 Checkpatch.pl warning Shraddha Barke
@ 2015-08-08 18:42 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2015-08-08 18:42 UTC (permalink / raw)
To: kernelnewbies
On Sat, Aug 08, 2015 at 11:19:43PM +0530, Shraddha Barke wrote:
> I have come across the following checkpatch.pl warning a number of times:
>
> WARNING: Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp
> ()
>
> What exactly does it mean?
> What is the fix for this warning?
> Any help or links to appropriate Documentation will be good.
If you don't know what this is, or how network drivers work, I strongly
recommend not worrying about this at all, it's a tricky thing to get
right, and something that I need a _lot_ of proof before I ever accept
patches that do this.
I suggest working on something else.
best of luck,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Checkpatch.pl warning
2018-09-30 13:04 Shubham Singh
@ 2018-09-30 22:57 ` valdis.kletnieks at vt.edu
0 siblings, 0 replies; 4+ messages in thread
From: valdis.kletnieks at vt.edu @ 2018-09-30 22:57 UTC (permalink / raw)
To: kernelnewbies
On Sun, 30 Sep 2018 16:04:13 +0300, Shubham Singh said:
> Regarding the warning of checkpatch.pl,
> " 'str' object has no attribute 'decode' "
> This warning is related to spdxcheck.py which is because of version of python
> In python3 str has no attribute decode(), while it works fine in python2, without any warning.
> I checked the patch related to this
> https://lore.kernel.org/lkml/20180717190635.29467-1-jcline at redhat.com/T/#u
> We can resolve the warning by just putting an if statement above line.decode() to resolve the warning.
I'm assuming you're using a 4.19-rc1 or later kernel, as Cline's patch first appeared
in a mainline kernel at that tag, and next-20180820 for the -next tree.
Are you saying this commit:
commit bed95c43c15eb6b1ccc5b09e5ae08cac726c456d
Author: Jeremy Cline <jcline@redhat.com>
Date: Fri Aug 17 15:44:01 2018 -0700
scripts: add Python 3 compatibility to spdxcheck.py
is incomplete and needs patches?
> Am I right or I missed something?
If you are right, there *is* something missing - a patch. :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Checkpatch.pl warning
@ 2018-09-30 13:04 Shubham Singh
2018-09-30 22:57 ` valdis.kletnieks at vt.edu
0 siblings, 1 reply; 4+ messages in thread
From: Shubham Singh @ 2018-09-30 13:04 UTC (permalink / raw)
To: kernelnewbies
Regarding the warning of checkpatch.pl,
" 'str' object has no attribute 'decode' "
This warning is related to spdxcheck.py which is because of version of python
In python3 str has no attribute decode(), while it works fine in python2, without any warning.
I checked the patch related to this
https://lore.kernel.org/lkml/20180717190635.29467-1-jcline at redhat.com/T/#u
We can resolve the warning by just putting an if statement above line.decode() to resolve the warning.
Am I right or I missed something ?
SHUBHAM SINGH
@shubhsherl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180930/49315f29/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-09-30 22:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-08 17:49 Checkpatch.pl warning Shraddha Barke
2015-08-08 18:42 ` Greg KH
2018-09-30 13:04 Shubham Singh
2018-09-30 22:57 ` valdis.kletnieks at vt.edu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.