net: aquantia: make function aq_fw2x_update_stats static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 16 Oct 2018 10:50:56 +0000 (18:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 17:00:07 +0000 (10:00 -0700)
Fixes the following sparse warning:

 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c:282:5: warning:
  symbol 'aq_fw2x_update_stats' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c

index c0568465e10b5c143466358cdc62392bbc09a2fb..096ca5730887c1d4a47861c3a6a456cd240b2bd1 100644 (file)
@@ -279,7 +279,7 @@ static int aq_fw2x_get_mac_permanent(struct aq_hw_s *self, u8 *mac)
        return err;
 }
 
-int aq_fw2x_update_stats(struct aq_hw_s *self)
+static int aq_fw2x_update_stats(struct aq_hw_s *self)
 {
        int err = 0;
        u32 mpi_opts = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);