From: Jaroslaw Ilgiewicz <jaroslaw.ilgiewicz@intel.com>
Time variables were designed for 32 bit and 64 bit variables are not
necessary. Changed all to 32 bit.
Signed-off-by: Jaroslaw Ilgiewicz <jaroslaw.ilgiewicz@intel.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
drivers/net/i40e/base/i40e_common.c | 2 +-
drivers/net/i40e/base/i40e_nvm.c | 6 +++---
drivers/net/i40e/base/i40e_prototype.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
@@ -3596,7 +3596,7 @@ enum i40e_status_code i40e_aq_debug_write_register(struct i40e_hw *hw,
enum i40e_status_code i40e_aq_request_resource(struct i40e_hw *hw,
enum i40e_aq_resources_ids resource,
enum i40e_aq_resource_access_type access,
- u8 sdp_number, u64 *timeout,
+ u8 sdp_number, u32 *timeout,
struct i40e_asq_cmd_details *cmd_details)
{
struct i40e_aq_desc desc;
@@ -62,7 +62,7 @@ enum i40e_status_code i40e_acquire_nvm(struct i40e_hw *hw,
{
enum i40e_status_code ret_code = I40E_SUCCESS;
u32 gtime, timeout;
- u64 time_left = 0;
+ u32 time_left = 0;
DEBUGFUNC("i40e_acquire_nvm");
@@ -127,8 +127,8 @@ enum i40e_status_code i40e_acquire_nvm_ex(struct i40e_hw *hw,
u32 custom_timeout)
{
enum i40e_status_code ret_code = I40E_SUCCESS;
- u64 gtime, timeout;
- u64 time_left = 0;
+ u32 gtime, timeout;
+ u32 time_left = 0;
DEBUGFUNC("i40e_acquire_nvm");
@@ -233,7 +233,7 @@ enum i40e_status_code i40e_aq_set_switch_config(struct i40e_hw *hw,
enum i40e_status_code i40e_aq_request_resource(struct i40e_hw *hw,
enum i40e_aq_resources_ids resource,
enum i40e_aq_resource_access_type access,
- u8 sdp_number, u64 *timeout,
+ u8 sdp_number, u32 *timeout,
struct i40e_asq_cmd_details *cmd_details);
enum i40e_status_code i40e_aq_release_resource(struct i40e_hw *hw,
enum i40e_aq_resources_ids resource,