Skip to content

Commit 64dfc4f

Browse files
Wang Haidavem330
authored andcommitted
net: hns: Fix some kernel-doc warnings in hns_dsaf_xgmac.c
Fixes the following W=1 kernel build warning(s): drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c:137: warning: Excess function parameter 'drv' description in 'hns_xgmac_enable' drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c:497: warning: Excess function parameter 'cmd' description in 'hns_xgmac_get_regs' Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wang Hai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ce455af commit 64dfc4f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static void hns_xgmac_lf_rf_control_init(struct mac_driver *mac_drv)
130130

131131
/**
132132
*hns_xgmac_enable - enable xgmac port
133-
*@drv: mac driver
133+
*@mac_drv: mac driver
134134
*@mode: mode of mac port
135135
*/
136136
static void hns_xgmac_enable(void *mac_drv, enum mac_commom_mode mode)
@@ -490,7 +490,6 @@ static void hns_xgmac_get_link_status(void *mac_drv, u32 *link_stat)
490490
/**
491491
*hns_xgmac_get_regs - dump xgmac regs
492492
*@mac_drv: mac driver
493-
*@cmd:ethtool cmd
494493
*@data:data for value of regs
495494
*/
496495
static void hns_xgmac_get_regs(void *mac_drv, void *data)

0 commit comments

Comments
 (0)