bnx2x: Fix some kernel-doc warnings
PATCH 1/1 bnx2x: Fix some kernel-doc warnings
Fixes the following W=1 kernel build warning(s):
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:4238: warning: Excess function parameter 'netdev' description in 'bnx2x_setup_tc' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:4238: warning: Excess function parameter 'tc' description in 'bnx2x_setup_tc'
Reported-by Hulk Robot <[email protected]>
Signed-off-by Wang Hai <[email protected]>
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +2 -2
@@ -4229,8 +4229,8 @@ void bnx2x_get_c2s_mapping(struct bnx2x *bp, u8 *c2s_map, u8 *c2s_default)/** * bnx2x_setup_tc - routine to configure net_device for multi tc * -* @netdev: net device to configure -* @tc: number of traffic classes to enable +* @dev: net device to configure +* @num_tc: number of traffic classes to enable * * callback connected to the ndo_setup_tc function pointer */
Signature · 1 line
2.17.1
From: Wang Hai <[email protected]>
Date: Tue, 8 Sep 2020 22:01:58 +0800
Quoted 7 lines
Fixes the following W=1 kernel build warning(s):
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:4238: warning: Excess function parameter 'netdev' description in 'bnx2x_setup_tc'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:4238: warning: Excess function parameter 'tc' description in 'bnx2x_setup_tc'Reported-by Hulk Robot <[email protected]>Signed-off-by Wang Hai <[email protected]>
Applied.