From: Randy Dunlap Date: Sat, 6 Nov 2021 03:14:41 +0000 (-0700) Subject: net: hisilicon: fix hsn3_ethtool kernel-doc warnings X-Git-Tag: v6.6.17~8844^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85879f131d78151847baf29f9557c5be1aa8e066;p=platform%2Fkernel%2Flinux-rpi.git net: hisilicon: fix hsn3_ethtool kernel-doc warnings Fix kernel-doc warnings and spacing in hns3_ethtool.c: hns3_ethtool.c:246: warning: No description found for return value of 'hns3_lp_run_test' hns3_ethtool.c:408: warning: expecting prototype for hns3_nic_self_test(). Prototype was for hns3_self_test() instead Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Peng Li Cc: Guangbin Huang Cc: Yisen Zhuang Cc: Salil Mehta Cc: "David S. Miller" Cc: Jakub Kicinski Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c index 5ebd96f..0570242 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c @@ -238,9 +238,11 @@ static void hns3_lb_clear_tx_ring(struct hns3_nic_priv *priv, u32 start_ringid, } /** - * hns3_lp_run_test - run loopback test + * hns3_lp_run_test - run loopback test * @ndev: net device * @mode: loopback type + * + * Return: %0 for success or a NIC loopback test error code on failure */ static int hns3_lp_run_test(struct net_device *ndev, enum hnae3_loop mode) { @@ -398,7 +400,7 @@ static void hns3_do_selftest(struct net_device *ndev, int (*st_param)[2], } /** - * hns3_nic_self_test - self test + * hns3_self_test - self test * @ndev: net device * @eth_test: test cmd * @data: test result