Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4260285pxj; Tue, 25 May 2021 04:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym3PlefoTaQxjPvBmU2UHpo3+xGnofEMunygoTht84v7yF+Dr53oldIa5OVC7R79xaSnhj X-Received: by 2002:aa7:c04c:: with SMTP id k12mr9856363edo.252.1621940789911; Tue, 25 May 2021 04:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621940789; cv=none; d=google.com; s=arc-20160816; b=hi8UszQEDWppMv1HTTElhzWSaWehmh/0rLPEAe0Z0Nen66qLRMdpax7OD7hp0TAIhS xrfrkZiZb30PKZCBTSaf5dbC7tEXFXyAR7Nqy9OWeg9XuoNRHVqvJ9TjeleI0xhK+l69 ZFKdDO0EFhCodCqRCoKstvZoTHLu4kJVo2a9lu7z9a2nojhZQs4nejuyPrfxuiC1jhQ6 +SyslrgTh2AHmYYxp2Imx021O3RiUjEVoZ2Rns0i+anegK8CPCxqL/XzPnXMjCO7dw+Y l1h5b81Mtxt4V8S6qUQUxKTzw7CdWjNw7nyoMc1qOLyTw9bsS7tmqwgYOMKa4man2d6P BrFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=JzjE1gTnHABISFAwskOD2j5u8vgegNNh0cgm8BOsTNI=; b=m1LOjxase1lGBy/mQV3f3i5XDzFVar6eIgfh/zc911X0tDFzr982DliaNVC+RdyJCm Yr0y0BUpJAs+mE2sJbs6u9WQ+PR8wbXKUilpMtXvNnJ/8uYMzMIbKQL8J0XkrB00BOqW hPIog1Qp5puWBlqUCb0j10VOoc48VQ0+584vSx0LJojPHOygLpJRMsI/e7wkFhy+pkdF SztJgJ6N3RBMqfSFD65IoL0dnAJBgecdQNXs/BQq2wUURf3hmM7X8DgcpoVEVxDA391F HI+AYGQ9c1stfU5IFQobpoiMSq50fodxi+4yK53aJrpsKMQZhojuCz4f9EDrXbBtO4n9 GLWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id au2si67728ejc.88.2021.05.25.04.06.05; Tue, 25 May 2021 04:06:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbhEYKyV (ORCPT + 99 others); Tue, 25 May 2021 06:54:21 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:54024 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbhEYKyU (ORCPT ); Tue, 25 May 2021 06:54:20 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Ua4WxO9_1621939968; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Ua4WxO9_1621939968) by smtp.aliyun-inc.com(127.0.0.1); Tue, 25 May 2021 18:52:49 +0800 From: Yang Li To: yisen.zhuang@huawei.com Cc: salil.mehta@huawei.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] net: hns: Fix kernel-doc Date: Tue, 25 May 2021 18:52:47 +0800 Message-Id: <1621939967-67560-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix function name in hns_ethtool.c kernel-doc comment to remove these warnings found by clang_w1. drivers/net/ethernet/hisilicon/hns/hns_ethtool.c:202: warning: expecting prototype for hns_nic_set_link_settings(). Prototype was for hns_nic_set_link_ksettings() instead. drivers/net/ethernet/hisilicon/hns/hns_ethtool.c:837: warning: expecting prototype for get_ethtool_stats(). Prototype was for hns_get_ethtool_stats() instead. drivers/net/ethernet/hisilicon/hns/hns_ethtool.c:894: warning: expecting prototype for get_strings(). Prototype was for hns_get_strings() instead. Reported-by: Abaci Robot Fixes: 'commit 262b38cdb3e4 ("net: ethernet: hisilicon: hns: use phydev from struct net_device")' Signed-off-by: Yang Li --- drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c b/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c index da48c05..7e62dcf 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c @@ -192,7 +192,7 @@ static int hns_nic_get_link_ksettings(struct net_device *net_dev, } /** - *hns_nic_set_link_settings - implement ethtool set link ksettings + *hns_nic_set_link_ksettings - implement ethtool set link ksettings *@net_dev: net_device *@cmd: ethtool_link_ksettings *retuen 0 - success , negative --fail @@ -827,7 +827,7 @@ static int hns_set_coalesce(struct net_device *net_dev, } /** - * get_ethtool_stats - get detail statistics. + * hns_get_ethtool_stats - get detail statistics. * @netdev: net device * @stats: statistics info. * @data: statistics data. @@ -885,7 +885,7 @@ static void hns_get_ethtool_stats(struct net_device *netdev, } /** - * get_strings: Return a set of strings that describe the requested objects + * hns_get_strings: Return a set of strings that describe the requested objects * @netdev: net device * @stringset: string set ID. * @data: objects data. -- 1.8.3.1