forked from Minki/linux
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@huawei.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1e8249cc9d
commit
ecfb751f1a
@ -194,8 +194,8 @@ struct ice_flow_entry {
|
|||||||
u16 entry_sz;
|
u16 entry_sz;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define ICE_FLOW_ENTRY_HNDL(e) ((u64)e)
|
#define ICE_FLOW_ENTRY_HNDL(e) ((u64)(uintptr_t)e)
|
||||||
#define ICE_FLOW_ENTRY_PTR(h) ((struct ice_flow_entry *)(h))
|
#define ICE_FLOW_ENTRY_PTR(h) ((struct ice_flow_entry *)(uintptr_t)(h))
|
||||||
|
|
||||||
struct ice_flow_prof {
|
struct ice_flow_prof {
|
||||||
struct list_head l_entry;
|
struct list_head l_entry;
|
||||||
|
Loading…
Reference in New Issue
Block a user