[Intel-wired-lan] [PATCH v2 04/13] i40e/i40evf: fix I40E_MASK signed shift overflow warnings

Bowers, AndrewX andrewx.bowers at intel.com
Wed Apr 20 20:00:03 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Jacob Keller
> Sent: Wednesday, April 13, 2016 4:08 PM
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Subject: [Intel-wired-lan] [PATCH v2 04/13] i40e/i40evf: fix I40E_MASK
> signed shift overflow warnings
> 
> GCC 6 has a new warning which will display when you attempt to left shift a
> signed value beyond the storage size of the type. I40E_MASK generates a
> mask value for 32bit registers. Properly typecast the mask value and place
> the values in parenthesis to prevent macro expansion issues.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_type.h   | 2 +-
>  drivers/net/ethernet/intel/i40evf/i40e_type.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
Driver compiles without shift warnings with gcc6


More information about the Intel-wired-lan mailing list