diff options
author | Yaniv Rosner <yanivr@broadcom.com> | 2011-01-30 23:22:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-31 16:22:41 -0500 |
commit | 65a001bad18eb80f6f953e5e0601132f09bfe197 (patch) | |
tree | ce877fb4b86065bd43350663be4f6eaff2c82982 | |
parent | 2cf7acf98ef8327588e49bf74b7653ca4a063f09 (diff) |
bnx2x: Fix compilation warning messages
Fix annoying compilation warning, mainly related to static declarations
Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bnx2x/bnx2x_link.c | 18 | ||||
-rw-r--r-- | drivers/net/bnx2x/bnx2x_link.h | 5 |
2 files changed, 11 insertions, 12 deletions
diff --git a/drivers/net/bnx2x/bnx2x_link.c b/drivers/net/bnx2x/bnx2x_link.c index 9fadcdbe4115..452e262b0c20 100644 --- a/drivers/net/bnx2x/bnx2x_link.c +++ b/drivers/net/bnx2x/bnx2x_link.c | |||
@@ -183,12 +183,6 @@ | |||
183 | (_bank + (_addr & 0xf)), \ | 183 | (_bank + (_addr & 0xf)), \ |
184 | _val) | 184 | _val) |
185 | 185 | ||
186 | static u8 bnx2x_cl45_read(struct bnx2x *bp, struct bnx2x_phy *phy, | ||
187 | u8 devad, u16 reg, u16 *ret_val); | ||
188 | |||
189 | static u8 bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy, | ||
190 | u8 devad, u16 reg, u16 val); | ||
191 | |||
192 | static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits) | 186 | static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits) |
193 | { | 187 | { |
194 | u32 val = REG_RD(bp, reg); | 188 | u32 val = REG_RD(bp, reg); |
@@ -269,7 +263,7 @@ void bnx2x_ets_disabled(struct link_params *params) | |||
269 | REG_WR(bp, PBF_REG_NUM_STRICT_ARB_SLOTS, 0); | 263 | REG_WR(bp, PBF_REG_NUM_STRICT_ARB_SLOTS, 0); |
270 | } | 264 | } |
271 | 265 | ||
272 | void bnx2x_ets_bw_limit_common(const struct link_params *params) | 266 | static void bnx2x_ets_bw_limit_common(const struct link_params *params) |
273 | { | 267 | { |
274 | /* ETS disabled configuration */ | 268 | /* ETS disabled configuration */ |
275 | struct bnx2x *bp = params->bp; | 269 | struct bnx2x *bp = params->bp; |
@@ -1391,8 +1385,8 @@ static u32 bnx2x_get_emac_base(struct bnx2x *bp, | |||
1391 | /******************************************************************/ | 1385 | /******************************************************************/ |
1392 | /* CL45 access functions */ | 1386 | /* CL45 access functions */ |
1393 | /******************************************************************/ | 1387 | /******************************************************************/ |
1394 | u8 bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy, | 1388 | static u8 bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy, |
1395 | u8 devad, u16 reg, u16 val) | 1389 | u8 devad, u16 reg, u16 val) |
1396 | { | 1390 | { |
1397 | u32 tmp, saved_mode; | 1391 | u32 tmp, saved_mode; |
1398 | u8 i, rc = 0; | 1392 | u8 i, rc = 0; |
@@ -1458,8 +1452,8 @@ u8 bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy, | |||
1458 | return rc; | 1452 | return rc; |
1459 | } | 1453 | } |
1460 | 1454 | ||
1461 | u8 bnx2x_cl45_read(struct bnx2x *bp, struct bnx2x_phy *phy, | 1455 | static u8 bnx2x_cl45_read(struct bnx2x *bp, struct bnx2x_phy *phy, |
1462 | u8 devad, u16 reg, u16 *ret_val) | 1456 | u8 devad, u16 reg, u16 *ret_val) |
1463 | { | 1457 | { |
1464 | u32 val, saved_mode; | 1458 | u32 val, saved_mode; |
1465 | u16 i; | 1459 | u16 i; |
@@ -4614,7 +4608,7 @@ static u8 bnx2x_8727_read_sfp_module_eeprom(struct bnx2x_phy *phy, | |||
4614 | DP(NETIF_MSG_LINK, | 4608 | DP(NETIF_MSG_LINK, |
4615 | "Got bad status 0x%x when reading from SFP+ EEPROM\n", | 4609 | "Got bad status 0x%x when reading from SFP+ EEPROM\n", |
4616 | (val & MDIO_PMA_REG_SFP_TWO_WIRE_CTRL_STATUS_MASK)); | 4610 | (val & MDIO_PMA_REG_SFP_TWO_WIRE_CTRL_STATUS_MASK)); |
4617 | return -EINVAL; | 4611 | return -EFAULT; |
4618 | } | 4612 | } |
4619 | 4613 | ||
4620 | /* Read the buffer */ | 4614 | /* Read the buffer */ |
diff --git a/drivers/net/bnx2x/bnx2x_link.h b/drivers/net/bnx2x/bnx2x_link.h index d9e847bb96f8..92f36b6950dc 100644 --- a/drivers/net/bnx2x/bnx2x_link.h +++ b/drivers/net/bnx2x/bnx2x_link.h | |||
@@ -337,6 +337,11 @@ void bnx2x_ext_phy_hw_reset(struct bnx2x *bp, u8 port); | |||
337 | /* Reset the external of SFX7101 */ | 337 | /* Reset the external of SFX7101 */ |
338 | void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy); | 338 | void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy); |
339 | 339 | ||
340 | /* Read "byte_cnt" bytes from address "addr" from the SFP+ EEPROM */ | ||
341 | u8 bnx2x_read_sfp_module_eeprom(struct bnx2x_phy *phy, | ||
342 | struct link_params *params, u16 addr, | ||
343 | u8 byte_cnt, u8 *o_buf); | ||
344 | |||
340 | void bnx2x_hw_reset_phy(struct link_params *params); | 345 | void bnx2x_hw_reset_phy(struct link_params *params); |
341 | 346 | ||
342 | /* Checks if HW lock is required for this phy/board type */ | 347 | /* Checks if HW lock is required for this phy/board type */ |