]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gianfar: Make reset_gfar static
authorYueHaibing <yuehaibing@huawei.com>
Mon, 23 Sep 2019 06:16:03 +0000 (14:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Sep 2019 11:56:41 +0000 (13:56 +0200)
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>
drivers/net/ethernet/freescale/gianfar.c

index 24bf7f68375fdb8bc7cf66269f165ff72e293f02..51ad86417cb13b3d3034e3ff321c8cf0f0a73001 100644 (file)
@@ -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);