sfc: efx_get_phys_port_id() can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Jan 2017 16:16:12 +0000 (16:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 21:12:01 +0000 (16:12 -0500)
Fixes the following sparse warning:

drivers/net/ethernet/sfc/efx.c:2337:5: warning:
 symbol 'efx_get_phys_port_id' 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/sfc/efx.c

index 543fa488d049ec90498e43127faf547c13d9f323..f2ec853e356d9cb27b331ae3880155cf1758e732 100644 (file)
@@ -2334,8 +2334,8 @@ static int efx_set_features(struct net_device *net_dev, netdev_features_t data)
        return 0;
 }
 
-int efx_get_phys_port_id(struct net_device *net_dev,
-                        struct netdev_phys_item_id *ppid)
+static int efx_get_phys_port_id(struct net_device *net_dev,
+                               struct netdev_phys_item_id *ppid)
 {
        struct efx_nic *efx = netdev_priv(net_dev);