Checkpatch.pl warning

Greg KH greg at kroah.com
Sat Aug 8 14:42:57 EDT 2015


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



More information about the Kernelnewbies mailing list