From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Sat, 8 Aug 2015 11:42:57 -0700 Subject: Checkpatch.pl warning In-Reply-To: References: Message-ID: <20150808184257.GA13850@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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