diff options
author | Wei Yongjun | 2017-01-11 17:16:12 +0100 |
---|---|---|
committer | David S. Miller | 2017-01-11 22:12:01 +0100 |
commit | b40296fc73f58f98b595164d52d9bfe99216efa6 (patch) | |
tree | f57a4d01f90b4f7c19a4128a41a003965c7ba292 /drivers/net/ethernet/sfc/efx.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | kernel-qcow2-linux-b40296fc73f58f98b595164d52d9bfe99216efa6.tar.gz kernel-qcow2-linux-b40296fc73f58f98b595164d52d9bfe99216efa6.tar.xz kernel-qcow2-linux-b40296fc73f58f98b595164d52d9bfe99216efa6.zip |
sfc: efx_get_phys_port_id() can be static
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 543fa488d049..f2ec853e356d 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -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); |