aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/t3_hw.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-10-08 19:22:29 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:55:29 -0400
commit9265fabf0d4c3d0a52e169d4b9149d52fd91db69 (patch)
tree3e3f642719fd05cc2cd4759d7365b10ac89dda2c /drivers/net/cxgb3/t3_hw.c
parent33a85aa1c915c2f114bdac9b6d1ec00cc0fbc485 (diff)
cxgb3 sparse warning fixes
Fix warnings from sparse related to shadowed variables and routines that should be declared static. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/t3_hw.c')
-rw-r--r--drivers/net/cxgb3/t3_hw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c
index 058329321440..d4ee00d32219 100644
--- a/drivers/net/cxgb3/t3_hw.c
+++ b/drivers/net/cxgb3/t3_hw.c
@@ -119,9 +119,9 @@ void t3_set_reg_field(struct adapter *adapter, unsigned int addr, u32 mask,
119 * Reads registers that are accessed indirectly through an address/data 119 * Reads registers that are accessed indirectly through an address/data
120 * register pair. 120 * register pair.
121 */ 121 */
122void t3_read_indirect(struct adapter *adap, unsigned int addr_reg, 122static void t3_read_indirect(struct adapter *adap, unsigned int addr_reg,
123 unsigned int data_reg, u32 *vals, unsigned int nregs, 123 unsigned int data_reg, u32 *vals,
124 unsigned int start_idx) 124 unsigned int nregs, unsigned int start_idx)
125{ 125{
126 while (nregs--) { 126 while (nregs--) {
127 t3_write_reg(adap, addr_reg, start_idx); 127 t3_write_reg(adap, addr_reg, start_idx);
@@ -3407,7 +3407,7 @@ void early_hw_init(struct adapter *adapter, const struct adapter_info *ai)
3407 * Older PCIe cards lose their config space during reset, PCI-X 3407 * Older PCIe cards lose their config space during reset, PCI-X
3408 * ones don't. 3408 * ones don't.
3409 */ 3409 */
3410int t3_reset_adapter(struct adapter *adapter) 3410static int t3_reset_adapter(struct adapter *adapter)
3411{ 3411{
3412 int i, save_and_restore_pcie = 3412 int i, save_and_restore_pcie =
3413 adapter->params.rev < T3_REV_B2 && is_pcie(adapter); 3413 adapter->params.rev < T3_REV_B2 && is_pcie(adapter);