From: Simon Horman <horms@kernel.org>
To: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Cc: Jacob Keller <jacob.e.keller@intel.com>,
anthony.l.nguyen@intel.com, intel-wired-lan@lists.osuosl.org,
netdev@vger.kernel.org
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v4 1/3] ixgbe: Convert ret val type from s32 to int
Date: Tue, 30 Jan 2024 13:13:34 +0000 [thread overview]
Message-ID: <20240130131334.GJ351311@kernel.org> (raw)
In-Reply-To: <20240126130503.14197-1-jedrzej.jagielski@intel.com>
On Fri, Jan 26, 2024 at 02:05:01PM +0100, Jedrzej Jagielski wrote:
> Currently big amount of the functions returning standard error codes
> are of type s32. Convert them to regular ints as typdefs here are not
> necessary to return standard error codes.
>
> Fix incorrect args alignment in touched functions.
>
> Suggested-by: Jacob Keller <jacob.e.keller@intel.com>
> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
> Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Thanks Jedrzej,
this looks good to me.
With the nit below resolved, please feel free to add:
Reviewed-by: Simon Horman <horms@kernel.org>
...
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
...
> @@ -115,7 +110,7 @@ s32 ixgbe_dcb_config_tx_desc_arbiter_82598(struct ixgbe_hw *hw,
> }
>
> /**
> - * ixgbe_dcb_config_tx_data_arbiter_82598 - Config Tx data arbiter
> + * xgbe_dcb_config_tx_data_arbiter_82598 - Config Tx data arbiter
nit: ixgbe_dcb_config_tx_data_arbiter_82598
> * @hw: pointer to hardware structure
> * @refill: refill credits index by traffic class
> * @max: max credits index by traffic class
> @@ -124,11 +119,8 @@ s32 ixgbe_dcb_config_tx_desc_arbiter_82598(struct ixgbe_hw *hw,
> *
> * Configure Tx Data Arbiter and credits for each traffic class.
> */
> -s32 ixgbe_dcb_config_tx_data_arbiter_82598(struct ixgbe_hw *hw,
> - u16 *refill,
> - u16 *max,
> - u8 *bwg_id,
> - u8 *prio_type)
> +int ixgbe_dcb_config_tx_data_arbiter_82598(struct ixgbe_hw *hw, u16 *refill,
> + u16 *max, u8 *bwg_id, u8 *prio_type)
> {
> u32 reg;
> u8 i;
...
WARNING: multiple messages have this Message-ID (diff)
From: Simon Horman <horms@kernel.org>
To: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Cc: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com,
netdev@vger.kernel.org, Jacob Keller <jacob.e.keller@intel.com>
Subject: Re: [PATCH iwl-next v4 1/3] ixgbe: Convert ret val type from s32 to int
Date: Tue, 30 Jan 2024 13:13:34 +0000 [thread overview]
Message-ID: <20240130131334.GJ351311@kernel.org> (raw)
In-Reply-To: <20240126130503.14197-1-jedrzej.jagielski@intel.com>
On Fri, Jan 26, 2024 at 02:05:01PM +0100, Jedrzej Jagielski wrote:
> Currently big amount of the functions returning standard error codes
> are of type s32. Convert them to regular ints as typdefs here are not
> necessary to return standard error codes.
>
> Fix incorrect args alignment in touched functions.
>
> Suggested-by: Jacob Keller <jacob.e.keller@intel.com>
> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
> Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Thanks Jedrzej,
this looks good to me.
With the nit below resolved, please feel free to add:
Reviewed-by: Simon Horman <horms@kernel.org>
...
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
...
> @@ -115,7 +110,7 @@ s32 ixgbe_dcb_config_tx_desc_arbiter_82598(struct ixgbe_hw *hw,
> }
>
> /**
> - * ixgbe_dcb_config_tx_data_arbiter_82598 - Config Tx data arbiter
> + * xgbe_dcb_config_tx_data_arbiter_82598 - Config Tx data arbiter
nit: ixgbe_dcb_config_tx_data_arbiter_82598
> * @hw: pointer to hardware structure
> * @refill: refill credits index by traffic class
> * @max: max credits index by traffic class
> @@ -124,11 +119,8 @@ s32 ixgbe_dcb_config_tx_desc_arbiter_82598(struct ixgbe_hw *hw,
> *
> * Configure Tx Data Arbiter and credits for each traffic class.
> */
> -s32 ixgbe_dcb_config_tx_data_arbiter_82598(struct ixgbe_hw *hw,
> - u16 *refill,
> - u16 *max,
> - u8 *bwg_id,
> - u8 *prio_type)
> +int ixgbe_dcb_config_tx_data_arbiter_82598(struct ixgbe_hw *hw, u16 *refill,
> + u16 *max, u8 *bwg_id, u8 *prio_type)
> {
> u32 reg;
> u8 i;
...
next prev parent reply other threads:[~2024-01-30 13:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-26 13:05 [Intel-wired-lan] [PATCH iwl-next v4 1/3] ixgbe: Convert ret val type from s32 to int Jedrzej Jagielski
2024-01-26 13:05 ` Jedrzej Jagielski
2024-01-26 13:05 ` [Intel-wired-lan] [PATCH iwl-next v4 2/3] ixgbe: Rearrange args to fix reverse Christmas tree Jedrzej Jagielski
2024-01-26 13:05 ` Jedrzej Jagielski
2024-01-30 13:12 ` [Intel-wired-lan] " Simon Horman
2024-01-30 13:12 ` Simon Horman
2024-01-26 13:05 ` [Intel-wired-lan] [PATCH iwl-next v4 3/3] ixgbe: Clarify the values of the returning status Jedrzej Jagielski
2024-01-26 13:05 ` Jedrzej Jagielski
2024-01-30 13:11 ` [Intel-wired-lan] " Simon Horman
2024-01-30 13:11 ` Simon Horman
2024-01-30 13:13 ` Simon Horman [this message]
2024-01-30 13:13 ` [PATCH iwl-next v4 1/3] ixgbe: Convert ret val type from s32 to int Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240130131334.GJ351311@kernel.org \
--to=horms@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacob.e.keller@intel.com \
--cc=jedrzej.jagielski@intel.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.