Skip to contentSkip to conversation

net: ethtool: cabletest: Make ethnl_act_cable_test_tdr_cfg static

PATCH Applied Andrew Lunn 2 participants 2 messages May 28, 2020 – May 30, 2020

Subsystems (4)
lore
Share & tools
lore

Andrew Lunn

author maintainer
#0 lore raw

PATCH 1/1 net: ethtool: cabletest: Make ethnl_act_cable_test_tdr_cfg static

kbuild test robot is reporting:
net/ethtool/cabletest.c:230:5: warning: no previous prototype for

Mark the function as static.

---
 net/ethtool/cabletest.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
net/ethtool/cabletest.c +3 -3
index 9991688d7d1d..7b7a0456c15c 100644
@@ -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;
Signature · 1 line
2.27.0.rc0
maintainer Applied
#1 lore raw

From: Andrew Lunn <[email protected]>
Date: Thu, 28 May 2020 23:43:24 +0200

Quoted 7 lines

kbuild test robot is reporting:
net/ethtool/cabletest.c:230:5: warning: no previous prototype for

Mark the function as static.

Applied, thanks Andrew. Please put "net-next" or similar next time.

Also, a Fixes: tag would have been nice but I won't require it for something like this.

Hmmm, I also just noticed how onerous that PHYLINK=y/n requirement is for the ethtool netlink stuff :-/