Commit 0a959e45 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b8b2de91
...@@ -319,7 +319,7 @@ static void hns_gmac_set_promisc(void *mac_drv, u8 en) ...@@ -319,7 +319,7 @@ static void hns_gmac_set_promisc(void *mac_drv, u8 en)
hns_gmac_set_uc_match(mac_drv, 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; struct mac_driver *drv = (struct mac_driver *)mac_drv;
int wait_cnt; int wait_cnt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment