[net-next PATCH] net: fix endian check warning in etherdevice.h

2015-08-13 Thread Jesse Brandeburg
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_6

Re: [net-next PATCH] net: fix endian check warning in etherdevice.h

2015-08-17 Thread David Miller
From: Jesse Brandeburg Date: Thu, 13 Aug 2015 18:34:03 -0700 > 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 t