linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yang Shen <shenyang39@huawei.com>
To: <davem@davemloft.net>, <kuba@kernel.org>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Yang Shen <shenyang39@huawei.com>,
	Ariel Elior <aelior@marvell.com>,
	Sudarsana Kalluru <skalluru@marvell.com>,
	<GR-everest-linux-l2@marvell.com>
Subject: [PATCH 05/34] net: broadcom: bnx2x: Fix wrong function name in comments
Date: Sat, 15 May 2021 18:53:30 +0800	[thread overview]
Message-ID: <1621076039-53986-6-git-send-email-shenyang39@huawei.com> (raw)
In-Reply-To: <1621076039-53986-1-git-send-email-shenyang39@huawei.com>

Fixes the following W=1 kernel build warning(s):

 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13595: warning: expecting prototype for bnx2x_get_num_none_def_sbs(). Prototype was for bnx2x_get_num_non_def_sbs() instead
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:4165: warning: expecting prototype for atomic_add_ifless(). Prototype was for __atomic_add_ifless() instead
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:4193: warning: expecting prototype for atomic_dec_ifmoe(). Prototype was for __atomic_dec_ifmoe() instead

Cc: Ariel Elior <aelior@marvell.com>
Cc: Sudarsana Kalluru <skalluru@marvell.com>
Cc: GR-everest-linux-l2@marvell.com
Signed-off-by: Yang Shen <shenyang39@huawei.com>
---
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 +-
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index 281b1c2..2acbc73 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -13586,7 +13586,7 @@ static int bnx2x_set_qm_cid_count(struct bnx2x *bp)
 }
 
 /**
- * bnx2x_get_num_none_def_sbs - return the number of none default SBs
+ * bnx2x_get_num_non_def_sbs - return the number of none default SBs
  * @pdev: pci device
  * @cnic_cnt: count
  *
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
index 6cd1523..542c698 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
@@ -4152,7 +4152,7 @@ void bnx2x_init_mcast_obj(struct bnx2x *bp,
 /*************************** Credit handling **********************************/
 
 /**
- * atomic_add_ifless - add if the result is less than a given value.
+ * __atomic_add_ifless - add if the result is less than a given value.
  *
  * @v:	pointer of type atomic_t
  * @a:	the amount to add to v...
@@ -4180,7 +4180,7 @@ static inline bool __atomic_add_ifless(atomic_t *v, int a, int u)
 }
 
 /**
- * atomic_dec_ifmoe - dec if the result is more or equal than a given value.
+ * __atomic_dec_ifmoe - dec if the result is more or equal than a given value.
  *
  * @v:	pointer of type atomic_t
  * @a:	the amount to dec from v...
-- 
2.7.4


  parent reply	other threads:[~2021-05-15 10:55 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-15 10:53 [PATCH 00/34] Rid W=1 warnings in net Yang Shen
2021-05-15 10:53 ` [PATCH 01/34] net: arc: Demote non-compliant kernel-doc headers Yang Shen
2021-05-15 11:06   ` Heiko Stuebner
2021-05-15 10:53 ` [PATCH 02/34] net: atheros: atl1c: Fix wrong function name in comments Yang Shen
2021-05-15 14:21   ` Andrew Lunn
2021-05-15 10:53 ` [PATCH 03/34] net: atheros: atl1e: " Yang Shen
2021-05-15 14:23   ` Andrew Lunn
2021-05-15 10:53 ` [PATCH 04/34] net: atheros: atl1x: " Yang Shen
2021-05-15 14:25   ` Andrew Lunn
2021-05-15 10:53 ` Yang Shen [this message]
2021-05-15 10:53 ` [PATCH 06/34] net: brocade: bna: " Yang Shen
2021-05-15 10:53 ` [PATCH 07/34] net: cadence: macb_ptp: Demote non-compliant kernel-doc headers Yang Shen
2021-05-15 12:46   ` Nicolas.Ferre
2021-05-17  1:48     ` Yang Shen
2021-05-15 10:53 ` [PATCH 08/34] net: calxeda: Fix wrong function name in comments Yang Shen
2021-05-15 10:53 ` [PATCH 09/34] net: chelsio: cxgb3: " Yang Shen
2021-05-15 10:53 ` [PATCH 10/34] net: chelsio: cxgb4: " Yang Shen
2021-05-15 10:53 ` [PATCH 11/34] net: chelsio: cxgb4vf: " Yang Shen
2021-05-15 10:53 ` [PATCH 12/34] net: huawei: hinic: " Yang Shen
2021-05-15 10:53 ` [PATCH 13/34] net: micrel: " Yang Shen
2021-05-15 10:53 ` [PATCH 14/34] net: microchip: Demote non-compliant kernel-doc headers Yang Shen
2021-05-15 10:53 ` [PATCH 15/34] net: neterion: Fix wrong function name in comments Yang Shen
2021-05-15 10:53 ` [PATCH 16/34] net: neterion: vxge: " Yang Shen
2021-05-15 10:53 ` [PATCH 17/34] net: netronome: nfp: " Yang Shen
2021-05-17  9:45   ` Simon Horman
2021-05-15 10:53 ` [PATCH 18/34] net: calxeda: " Yang Shen
2021-05-15 10:53 ` [PATCH 19/34] net: samsung: sxgbe: " Yang Shen
2021-05-15 10:53 ` [PATCH 20/34] net: socionext: Demote non-compliant kernel-doc headers Yang Shen
2021-05-17  2:17   ` Kunihiko Hayashi
2021-05-15 10:53 ` [PATCH 21/34] net: ti: Fix wrong struct name in comments Yang Shen
2021-05-15 10:53 ` [PATCH 22/34] net: via: Fix wrong function " Yang Shen
2021-05-15 10:53 ` [PATCH 23/34] net: phy: Demote non-compliant kernel-doc headers Yang Shen
2021-05-15 14:17   ` Andrew Lunn
2021-05-15 10:53 ` [PATCH 24/34] net: ath: ath5k: Fix wrong function name in comments Yang Shen
2021-05-15 11:36   ` Kalle Valo
2021-05-15 11:37     ` Kalle Valo
2021-05-17  1:51       ` Yang Shen
2021-05-15 10:53 ` [PATCH 25/34] net: ath: " Yang Shen
2021-05-15 10:53 ` [PATCH 26/34] net: ath: wil6210: " Yang Shen
2021-05-15 10:53 ` [PATCH 27/34] net: broadcom: brcmfmac: Demote non-compliant kernel-doc headers Yang Shen
2021-05-15 10:53 ` [PATCH 28/34] net: intel: ipw2x00: Fix wrong function name in comments Yang Shen
2021-05-15 10:53 ` [PATCH 29/34] net: intel: iwlwifi: Demote non-compliant kernel-doc headers Yang Shen
2021-05-15 10:53 ` [PATCH 30/34] net: marvell: libertas_tf: Fix wrong function name in comments Yang Shen
2021-05-15 10:53 ` [PATCH 31/34] net: realtek: rtlwifi: " Yang Shen
2021-05-15 10:53 ` [PATCH 32/34] net: rsi: Fix missing " Yang Shen
2021-05-15 10:53 ` [PATCH 33/34] net: ti: wl1251: " Yang Shen
2021-05-15 10:53 ` [PATCH 34/34] net: ti: wlcore: " Yang Shen

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=1621076039-53986-6-git-send-email-shenyang39@huawei.com \
    --to=shenyang39@huawei.com \
    --cc=GR-everest-linux-l2@marvell.com \
    --cc=aelior@marvell.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=skalluru@marvell.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).