OSDN Git Service

net: hns: make function hns_gmac_wait_fifo_clean() static
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 15 Sep 2018 01:42:09 +0000 (01:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2018 15:07:04 +0000 (08:07 -0700)
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>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c

index 09e4061..aaf72c0 100644 (file)
@@ -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;