[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM6PR11MB289004F11B8936F7C421A863BC540@DM6PR11MB2890.namprd11.prod.outlook.com>
Date: Wed, 26 Aug 2020 23:22:44 +0000
From: "Brown, Aaron F" <aaron.f.brown@...el.com>
To: Bixuan Cui <cuibixuan@...wei.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"kuba@...nel.org" <kuba@...nel.org>
CC: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-next@...r.kernel.org" <linux-next@...r.kernel.org>
Subject: RE: [PATCH -next v2] net: ice: Fix pointer cast warnings
> From: Bixuan Cui <cuibixuan@...wei.com>
> Sent: Friday, July 31, 2020 3:08 AM
> To: davem@...emloft.net; kuba@...nel.org
> Cc: Kirsher, Jeffrey T <jeffrey.t.kirsher@...el.com>; intel-wired-
> lan@...ts.osuosl.org; netdev@...r.kernel.org; linux-next@...r.kernel.org
> Subject: [PATCH -next v2] net: ice: Fix pointer cast warnings
>
> pointers should be casted to unsigned long to avoid
> -Wpointer-to-int-cast warnings:
>
> drivers/net/ethernet/intel/ice/ice_flow.h:197:33: warning:
> cast from pointer to integer of different size
> drivers/net/ethernet/intel/ice/ice_flow.h:198:32: warning:
> cast to pointer from integer of different size
>
> Signed-off-by: Bixuan Cui <cuibixuan@...wei.com>
> ---
> v2->v1: add fix:
> ice_flow.h:198:32: warning: cast to pointer from integer of different size [-
> Wint-to-pointer-cast]
> #define ICE_FLOW_ENTRY_PTR(h) ((struct ice_flow_entry *)(h))
>
> drivers/net/ethernet/intel/ice/ice_flow.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Tested-by: Aaron Brown <aaron.f.brown@...el.com>
Powered by blists - more mailing lists