diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-03-26 16:32:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-27 16:49:36 +0200 |
commit | 6a91ded32d6c8a6d0aee1928bb741e31577af24f (patch) | |
tree | 7e4a85fb6c39bdc08734691c3721919b17ca8e0b /drivers | |
parent | Merge branch 'net-mvpp2-Remove-unnecessary-dynamic-allocs' (diff) | |
download | linux-6a91ded32d6c8a6d0aee1928bb741e31577af24f.tar.xz linux-6a91ded32d6c8a6d0aee1928bb741e31577af24f.zip |
net: aquantia: Make function hw_atl_utils_mpi_set_speed() static
Fixes the following sparse warning:
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c:508:5: warning:
symbol 'hw_atl_utils_mpi_set_speed' 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')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c index d3b847ec7465..84d7f4dd4ce1 100644 --- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c +++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c @@ -505,7 +505,7 @@ void hw_atl_utils_mpi_read_stats(struct aq_hw_s *self, err_exit:; } -int hw_atl_utils_mpi_set_speed(struct aq_hw_s *self, u32 speed) +static int hw_atl_utils_mpi_set_speed(struct aq_hw_s *self, u32 speed) { u32 val = aq_hw_read_reg(self, HW_ATL_MPI_CONTROL_ADR); |