From: hanyu001@208suo.com
To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com
Cc: netdev@vger.kernel.org, linux-net-drivers@amd.com,
linux-kernel@vger.kernel.org
Subject: sfc: falcon: Prefer unsigned int to bare use of unsigned
Date: Mon, 17 Jul 2023 11:43:00 +0800 [thread overview]
Message-ID: <ab907800461dadf95c332a097f58e6f0@208suo.com> (raw)
In-Reply-To: <tencent_EE1674B8CDD721F12D12287A857E04C5DB0A@qq.com>
Fix checkpatch warnings:
./drivers/net/ethernet/sfc/falcon/net_driver.h:1167: WARNING: Prefer
'unsigned int' to bare use of 'unsigned'
./drivers/net/ethernet/sfc/falcon/net_driver.h:1188: WARNING: Prefer
'unsigned int' to bare use of 'unsigned'
./drivers/net/ethernet/sfc/falcon/net_driver.h:1188: WARNING: Prefer
'unsigned int' to bare use of 'unsigned'
./drivers/net/ethernet/sfc/falcon/net_driver.h:1202: WARNING: Prefer
'unsigned int' to bare use of 'unsigned'
Signed-off-by: maqimei <2433033762@qq.com>
---
drivers/net/ethernet/sfc/falcon/net_driver.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/sfc/falcon/net_driver.h
b/drivers/net/ethernet/sfc/falcon/net_driver.h
index a2c7139..d2d8f9b 100644
--- a/drivers/net/ethernet/sfc/falcon/net_driver.h
+++ b/drivers/net/ethernet/sfc/falcon/net_driver.h
@@ -1164,7 +1164,7 @@ struct ef4_nic_type {
*************************************************************************/
static inline struct ef4_channel *
-ef4_get_channel(struct ef4_nic *efx, unsigned index)
+ef4_get_channel(struct ef4_nic *efx, unsigned int index)
{
EF4_BUG_ON_PARANOID(index >= efx->n_channels);
return efx->channel[index];
@@ -1185,7 +1185,7 @@ struct ef4_nic_type {
(_efx)->channel[_channel->channel - 1] : NULL)
static inline struct ef4_tx_queue *
-ef4_get_tx_queue(struct ef4_nic *efx, unsigned index, unsigned type)
+ef4_get_tx_queue(struct ef4_nic *efx, unsigned int index, unsigned int
type)
{
EF4_BUG_ON_PARANOID(index >= efx->n_tx_channels ||
type >= EF4_TXQ_TYPES);
@@ -1199,7 +1199,7 @@ static inline bool
ef4_channel_has_tx_queues(struct ef4_channel *channel)
}
static inline struct ef4_tx_queue *
-ef4_channel_get_tx_queue(struct ef4_channel *channel, unsigned type)
+ef4_channel_get_tx_queue(struct ef4_channel *channel, unsigned int
type)
{
EF4_BUG_ON_PARANOID(!ef4_channel_has_tx_queues(channel) ||
type >= EF4_TXQ_TYPES);
next parent reply other threads:[~2023-07-17 3:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tencent_EE1674B8CDD721F12D12287A857E04C5DB0A@qq.com>
2023-07-17 3:43 ` hanyu001 [this message]
2023-07-17 7:56 ` sfc: falcon: Prefer unsigned int to bare use of unsigned Martin Habets
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=ab907800461dadf95c332a097f58e6f0@208suo.com \
--to=hanyu001@208suo.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net-drivers@amd.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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 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).