]> git.baikalelectronics.ru Git - kernel.git/commit
ice: fix signed vs unsigned comparisons
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Sat, 16 May 2020 00:36:38 +0000 (17:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 00:02:47 +0000 (17:02 -0700)
commitbd9db62e2a58bd78804a49e8530636ee84d05334
tree0bc1daf90501814fff8b00b359bbce07d842708e
parente085507ab7c040352e3a84a5cf2794c7b091fa78
ice: fix signed vs unsigned comparisons

Fix the remaining signed vs unsigned issues, which appear
when compiling with -Werror=sign-compare.

Many of these are because there is an external interface that is passing
an int to us (which we can't change) but that we (rightfully) store
and compare against as an unsigned in our data structures.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_base.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_txrx.h