bnx2x: fix sparse warning
authorstephen hemminger <stephen@networkplumber.org>
Tue, 14 Jan 2014 18:14:11 +0000 (10:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 23:06:47 +0000 (15:06 -0800)
Fix new sparse warning about function declared static.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c

index c5ce99b..9b6b3d7 100644 (file)
@@ -8602,8 +8602,8 @@ static void bnx2x_set_limiting_mode(struct link_params *params,
        }
 }
 
-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;