]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: aquantia: Make function aq_fw1x_set_power() static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 26 Sep 2018 12:20:00 +0000 (12:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2018 17:25:11 +0000 (10:25 -0700)
Fixes the following sparse warning:

drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c:873:5: warning:
 symbol 'aq_fw1x_set_power' was not declared. Should it be static?

Fixes: c2620aa08221 ("net: aquantia: implement WOL support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c

index 0dd59b09060bfc7c66540841be6a7837506f6170..7def1cb8ab9d0a620b58f880d7d6e3f7682c4e89 100644 (file)
@@ -870,8 +870,8 @@ err_exit:
        return err;
 }
 
-int aq_fw1x_set_power(struct aq_hw_s *self, unsigned int power_state,
-                     u8 *mac)
+static int aq_fw1x_set_power(struct aq_hw_s *self, unsigned int power_state,
+                            u8 *mac)
 {
        struct hw_atl_utils_fw_rpc *prpc = NULL;
        unsigned int rpc_size = 0U;