diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-05 14:24:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-05 17:07:05 +0200 |
commit | 05dcc71298643256948a2e17db7dbecc748719d2 (patch) | |
tree | 24b95a22b6db9e8a69fd549cd98e0610e0ed02ff /drivers/net/ethernet/microchip | |
parent | net/mlx5e: Make function mlx5i_grp_sw_update_stats() static (diff) | |
download | linux-05dcc71298643256948a2e17db7dbecc748719d2.tar.xz linux-05dcc71298643256948a2e17db7dbecc748719d2.zip |
net: lan743x_ptp: make function lan743x_ptp_set_sync_ts_insert() static
Fixes the following sparse warning:
drivers/net/ethernet/microchip/lan743x_ptp.c:980:6: warning:
symbol 'lan743x_ptp_set_sync_ts_insert' was not declared. Should it be static?
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip')
-rw-r--r-- | drivers/net/ethernet/microchip/lan743x_ptp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_ptp.c b/drivers/net/ethernet/microchip/lan743x_ptp.c index ccdf9123f26f..b2109eca81fd 100644 --- a/drivers/net/ethernet/microchip/lan743x_ptp.c +++ b/drivers/net/ethernet/microchip/lan743x_ptp.c @@ -977,8 +977,8 @@ void lan743x_ptp_close(struct lan743x_adapter *adapter) lan743x_ptp_disable(adapter); } -void lan743x_ptp_set_sync_ts_insert(struct lan743x_adapter *adapter, - bool ts_insert_enable) +static void lan743x_ptp_set_sync_ts_insert(struct lan743x_adapter *adapter, + bool ts_insert_enable) { u32 ptp_tx_mod = lan743x_csr_read(adapter, PTP_TX_MOD); |