]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ethtool: cabletest: Make ethnl_act_cable_test_tdr_cfg static
authorAndrew Lunn <andrew@lunn.ch>
Thu, 28 May 2020 21:43:24 +0000 (23:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 May 2020 00:28:30 +0000 (17:28 -0700)
kbuild test robot is reporting:
net/ethtool/cabletest.c:230:5: warning: no previous prototype for

Mark the function as static.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/cabletest.c

index 9991688d7d1d58eb6f09a14b680cb0cdcdf68028..7b7a0456c15ce2cd3680a2ae2fdbf623cd36822b 100644 (file)
@@ -227,9 +227,9 @@ cable_test_tdr_act_policy[ETHTOOL_A_CABLE_TEST_TDR_MAX + 1] = {
 };
 
 /* CABLE_TEST_TDR_ACT */
-int ethnl_act_cable_test_tdr_cfg(const struct nlattr *nest,
-                                struct genl_info *info,
-                                struct phy_tdr_config *cfg)
+static int ethnl_act_cable_test_tdr_cfg(const struct nlattr *nest,
+                                       struct genl_info *info,
+                                       struct phy_tdr_config *cfg)
 {
        struct nlattr *tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX + 1];
        int ret;