sfc: efx_get_phys_port_id() can be static
Subsystems (3)
PATCH 1/1 sfc: efx_get_phys_port_id() can be static
From: Wei Yongjun <[email protected]>
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 <[email protected]>
--- drivers/net/ethernet/sfc/efx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/sfc/efx.c +2 -2
@@ -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);
From: Wei Yongjun <[email protected]>
Date: Wed, 11 Jan 2017 16:16:12 +0000
Quoted 8 lines
From: Wei Yongjun <[email protected]>
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 <[email protected]>
Applied.