summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/gianfar.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-09-23 08:16:03 +0200
committerDavid S. Miller <davem@davemloft.net>2019-09-25 13:56:41 +0200
commit9f5c44cf61a7cf29d85d2c0d2065ab2d62764a41 (patch)
tree270779a886c8e0b7a99f080650bb6d08c133e604 /drivers/net/ethernet/freescale/gianfar.c
parentatm: he: clean up an indentation issue (diff)
downloadlinux-9f5c44cf61a7cf29d85d2c0d2065ab2d62764a41.tar.xz
linux-9f5c44cf61a7cf29d85d2c0d2065ab2d62764a41.zip
gianfar: Make reset_gfar static
Fix sparse warning: drivers/net/ethernet/freescale/gianfar.c:2070:6: warning: symbol 'reset_gfar' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.c')
-rw-r--r--drivers/net/ethernet/freescale/gianfar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c
index 24bf7f68375f..51ad86417cb1 100644
--- a/drivers/net/ethernet/freescale/gianfar.c
+++ b/drivers/net/ethernet/freescale/gianfar.c
@@ -2067,7 +2067,7 @@ static int gfar_change_mtu(struct net_device *dev, int new_mtu)
return 0;
}
-void reset_gfar(struct net_device *ndev)
+static void reset_gfar(struct net_device *ndev)
{
struct gfar_private *priv = netdev_priv(ndev);