[Intel-wired-lan] [PATCH S43 09/15] ice: fix signed vs unsigned comparisons

Bowers, AndrewX andrewx.bowers at intel.com
Fri May 22 19:58:59 UTC 2020


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Friday, May 15, 2020 5:37 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S43 09/15] ice: fix signed vs unsigned
> comparisons
> 
> From: Jesse Brandeburg <jesse.brandeburg at intel.com>
> 
> 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 at intel.com>
> Signed-off-by: Bruce Allan <bruce.w.allan at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_base.c | 4 ++--
> drivers/net/ethernet/intel/ice/ice_main.c | 8 ++++----
> drivers/net/ethernet/intel/ice/ice_txrx.h | 7 ++++---
>  3 files changed, 10 insertions(+), 9 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list