Commit 76d85049 authored by Yang Shen's avatar Yang Shen Committed by David S. Miller

net: broadcom: bnx2x: Fix wrong function name in comments

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: default avatarYang Shen <shenyang39@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c706c75a
...@@ -13586,7 +13586,7 @@ static int bnx2x_set_qm_cid_count(struct bnx2x *bp) ...@@ -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 * @pdev: pci device
* @cnic_cnt: count * @cnic_cnt: count
* *
......
...@@ -4152,7 +4152,7 @@ void bnx2x_init_mcast_obj(struct bnx2x *bp, ...@@ -4152,7 +4152,7 @@ void bnx2x_init_mcast_obj(struct bnx2x *bp,
/*************************** Credit handling **********************************/ /*************************** 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 * @v: pointer of type atomic_t
* @a: the amount to add to v... * @a: the amount to add to v...
...@@ -4180,7 +4180,7 @@ static inline bool __atomic_add_ifless(atomic_t *v, int a, int u) ...@@ -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 * @v: pointer of type atomic_t
* @a: the amount to dec from v... * @a: the amount to dec from v...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment