]> 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)
commit0a48e07d3e573b63425031b4bea9da67766d9d48
tree0bc1daf90501814fff8b00b359bbce07d842708e
parent44a92367e9ed282ad14b7af2f9ef2306854df754
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