Skip to contentSkip to conversation

bnx2x: fix sparse warning

PATCH Applied Stephen Hemminger 2 participants 2 messages Jan 14, 2014 – Jan 15, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bnx2x: fix sparse warning

Fix new sparse warning about function declared static.

drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c +2 -2
@@ -8602,8 +8602,8 @@ static void bnx2x_set_limiting_mode(stru
 	}
 }
 
-int bnx2x_sfp_module_detection(struct bnx2x_phy *phy,
-			       struct link_params *params)
+static int bnx2x_sfp_module_detection(struct bnx2x_phy *phy,
+				      struct link_params *params)
 {
 	struct bnx2x *bp = params->bp;
 	u16 edc_mode;