aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-09-15 01:42:09 +0000
committerDavid S. Miller <davem@davemloft.net>2018-09-17 08:07:04 -0700
commit0a959e45846ad697c54f0d2bd71fa55bdd1a8a39 (patch)
treee418f5419bffc49e8f7e680fb362a1e258a9adc2 /drivers/net/ethernet/hisilicon/hns
parentnet: lantiq: Fix return value check in xrx200_probe() (diff)
downloadlinux-dev-0a959e45846ad697c54f0d2bd71fa55bdd1a8a39.tar.xz
linux-dev-0a959e45846ad697c54f0d2bd71fa55bdd1a8a39.zip
net: hns: make function hns_gmac_wait_fifo_clean() static
Fixes the following sparse warning: drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c:322:5: warning: symbol 'hns_gmac_wait_fifo_clean' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns')
-rw-r--r--drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c
index 09e4061d1fa6..aaf72c055711 100644
--- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c
+++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c
@@ -319,7 +319,7 @@ static void hns_gmac_set_promisc(void *mac_drv, u8 en)
hns_gmac_set_uc_match(mac_drv, en);
}
-int hns_gmac_wait_fifo_clean(void *mac_drv)
+static int hns_gmac_wait_fifo_clean(void *mac_drv)
{
struct mac_driver *drv = (struct mac_driver *)mac_drv;
int wait_cnt;