• Jesse Brandeburg's avatar
    i40e: fix 32 bit build warnings · 9c70d7ce
    Jesse Brandeburg authored
    Sparse found some issues with 32 bit compilation, which probably should
    at least work without warning.  Not only that, but the code was wrong.
    Thanks sparse!!
    
    And thanks to the kbuild robot zero day testing for finding this issue.
    
    $ make ARCH=i386 M=drivers/net/ethernet/intel/i40e C=2 CF="-D__CHECK_ENDIAN__"
      CHECK   drivers/net/ethernet/intel/i40e/i40e_main.c
      include/linux/etherdevice.h:79:32: warning: restricted __be16 degrades to integer
      drivers/net/ethernet/intel/i40e/i40e_main.c:7565:17: warning: shift too big (32) for type unsigned long
      drivers/net/ethernet/intel/i40e/i40e_main.c:7565:17: warning: shift too big (42) for type unsigned long
      drivers/net/ethernet/intel/i40e/i40e_main.c:7565:17: warning: shift too big (39) for type unsigned long
      drivers/net/ethernet/intel/i40e/i40e_main.c:7565:17: warning: shift too big (40) for type unsigned long
    
    CC: kbuild-all@01.org
    Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
    Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    9c70d7ce
i40e_common.c 119 KB