[Intel-wired-lan] [next PATCH 2/2] igb: Fix sparse warning about passing __beXX into leXX_to_cpup

Brown, Aaron F aaron.f.brown at intel.com
Thu Mar 24 02:20:24 UTC 2016


> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Alexander Duyck
> Sent: Friday, March 18, 2016 4:07 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH 2/2] igb: Fix sparse warning about
> passing __beXX into leXX_to_cpup
> 
> We were casting the addr as __beXX and then passing it into le32_to_cpu
> because the device expects the MAC address to be in network order even
> though the register set is little endian.  Instead of casting it as __beXX
> we can just cast it as __leXX in order to maintain consistency since the
> region of memory is already in little endian order as far as we are
> concerned.
> 
> Signed-off-by: Alexander Duyck <aduyck at mirantis.com>
> ---
>  drivers/net/ethernet/intel/igb/igb_main.c |   10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Tested-by: Aaron Brown <aaron.f.brown at intel.com>


More information about the Intel-wired-lan mailing list