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>
This commit is contained in:

committed by
David S. Miller

parent
33a85aa1c9
commit
9265fabf0d
@@ -119,9 +119,9 @@ void t3_set_reg_field(struct adapter *adapter, unsigned int addr, u32 mask,
|
||||
* Reads registers that are accessed indirectly through an address/data
|
||||
* register pair.
|
||||
*/
|
||||
void t3_read_indirect(struct adapter *adap, unsigned int addr_reg,
|
||||
unsigned int data_reg, u32 *vals, unsigned int nregs,
|
||||
unsigned int start_idx)
|
||||
static void t3_read_indirect(struct adapter *adap, unsigned int addr_reg,
|
||||
unsigned int data_reg, u32 *vals,
|
||||
unsigned int nregs, unsigned int start_idx)
|
||||
{
|
||||
while (nregs--) {
|
||||
t3_write_reg(adap, addr_reg, start_idx);
|
||||
@@ -3407,7 +3407,7 @@ void early_hw_init(struct adapter *adapter, const struct adapter_info *ai)
|
||||
* Older PCIe cards lose their config space during reset, PCI-X
|
||||
* ones don't.
|
||||
*/
|
||||
int t3_reset_adapter(struct adapter *adapter)
|
||||
static int t3_reset_adapter(struct adapter *adapter)
|
||||
{
|
||||
int i, save_and_restore_pcie =
|
||||
adapter->params.rev < T3_REV_B2 && is_pcie(adapter);
|
||||
|
Reference in New Issue
Block a user