aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x
diff options
context:
space:
mode:
authorYaniv Rosner <yanivr@broadcom.com>2011-01-30 23:22:03 -0500
committerDavid S. Miller <davem@davemloft.net>2011-01-31 16:22:41 -0500
commit65a001bad18eb80f6f953e5e0601132f09bfe197 (patch)
treece877fb4b86065bd43350663be4f6eaff2c82982 /drivers/net/bnx2x
parent2cf7acf98ef8327588e49bf74b7653ca4a063f09 (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>
Diffstat (limited to 'drivers/net/bnx2x')
-rw-r--r--drivers/net/bnx2x/bnx2x_link.c18
-rw-r--r--drivers/net/bnx2x/bnx2x_link.h5
2 files changed, 11 insertions, 12 deletions
diff --git a/drivers/net/bnx2x/bnx2x_link.c b/drivers/net/bnx2x/bnx2x_link.c
index 9fadcdbe411..452e262b0c2 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
186static u8 bnx2x_cl45_read(struct bnx2x *bp, struct bnx2x_phy *phy,
187 u8 devad, u16 reg, u16 *ret_val);
188
189static u8 bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy,
190 u8 devad, u16 reg, u16 val);
191
192static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits) 186static 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
272void bnx2x_ets_bw_limit_common(const struct link_params *params) 266static 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/******************************************************************/
1394u8 bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy, 1388static 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
1461u8 bnx2x_cl45_read(struct bnx2x *bp, struct bnx2x_phy *phy, 1455static 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 d9e847bb96f..92f36b6950d 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 */
338void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy); 338void 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 */
341u8 bnx2x_read_sfp_module_eeprom(struct bnx2x_phy *phy,
342 struct link_params *params, u16 addr,
343 u8 byte_cnt, u8 *o_buf);
344
340void bnx2x_hw_reset_phy(struct link_params *params); 345void 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 */