kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* 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
@ 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
  -- strict thread matches above, loose matches on Subject: below --
2018-09-30 13:04 Shubham Singh
2018-09-30 22:57 ` valdis.kletnieks at vt.edu

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).