From: Jesse Brandeburg Date: Fri, 14 Aug 2015 01:34:03 +0000 (-0700) Subject: net: fix endian check warning in etherdevice.h X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~160 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbaff3ef859a86dc3df2128d2de9f8a6e255a967;p=pandora-kernel.git net: fix endian check warning in etherdevice.h Sparse builds have been warning for a really long time now that etherdevice.h has a conversion that is unsafe. include/linux/etherdevice.h:79:32: warning: restricted __be16 degrades to integer This code change fixes the issue and generates the exact same assembly before/after (checked on x86_64) Fixes: 2c722fe1c821 (etherdevice: Optimize a few is__ether_addr functions) Signed-off-by: Jesse Brandeburg CC: Joe Perches Signed-off-by: David S. Miller --- Reading git-diff-tree failed