netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] net: ice: Fix pointer cast warnings
@ 2020-07-31 10:57 Bixuan Cui
  2020-07-31 10:07 ` [PATCH -next v2] " Bixuan Cui
  0 siblings, 1 reply; 5+ messages in thread
From: Bixuan Cui @ 2020-07-31 10:57 UTC (permalink / raw)
  To: davem, kuba; +Cc: jeffrey.t.kirsher, intel-wired-lan, netdev, linux-next

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

Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
---
 drivers/net/ethernet/intel/ice/ice_flow.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_flow.h b/drivers/net/ethernet/intel/ice/ice_flow.h
index 3913da2116d2..b9a5c208e484 100644
--- a/drivers/net/ethernet/intel/ice/ice_flow.h
+++ b/drivers/net/ethernet/intel/ice/ice_flow.h
@@ -194,7 +194,7 @@ struct ice_flow_entry {
 	u16 entry_sz;
 };

-#define ICE_FLOW_ENTRY_HNDL(e)	((u64)e)
+#define ICE_FLOW_ENTRY_HNDL(e)	((uintptr_t)e)
 #define ICE_FLOW_ENTRY_PTR(h)	((struct ice_flow_entry *)(h))

 struct ice_flow_prof {
--
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-23  1:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 10:57 [PATCH -next] net: ice: Fix pointer cast warnings Bixuan Cui
2020-07-31 10:07 ` [PATCH -next v2] " Bixuan Cui
2020-08-26 23:22   ` Brown, Aaron F
2020-09-23  1:58     ` [PATCH v3] " Bixuan Cui
2020-09-23  1:44   ` [PATCH -next v2] " Bixuan Cui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).