diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-10-08 19:22:29 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:55:29 -0400 |
commit | 9265fabf0d4c3d0a52e169d4b9149d52fd91db69 (patch) | |
tree | 3e3f642719fd05cc2cd4759d7365b10ac89dda2c /drivers/net/cxgb3/sge.c | |
parent | 33a85aa1c915c2f114bdac9b6d1ec00cc0fbc485 (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/sge.c')
-rw-r--r-- | drivers/net/cxgb3/sge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c index 77f3ec5ff8a7..994b5d6404df 100644 --- a/drivers/net/cxgb3/sge.c +++ b/drivers/net/cxgb3/sge.c | |||
@@ -544,7 +544,7 @@ static void *alloc_ring(struct pci_dev *pdev, size_t nelem, size_t elem_size, | |||
544 | * as HW contexts, packet buffers, and descriptor rings. Traffic to the | 544 | * as HW contexts, packet buffers, and descriptor rings. Traffic to the |
545 | * queue set must be quiesced prior to calling this. | 545 | * queue set must be quiesced prior to calling this. |
546 | */ | 546 | */ |
547 | void t3_free_qset(struct adapter *adapter, struct sge_qset *q) | 547 | static void t3_free_qset(struct adapter *adapter, struct sge_qset *q) |
548 | { | 548 | { |
549 | int i; | 549 | int i; |
550 | struct pci_dev *pdev = adapter->pdev; | 550 | struct pci_dev *pdev = adapter->pdev; |
@@ -2215,7 +2215,7 @@ irqreturn_t t3_sge_intr_msix(int irq, void *cookie) | |||
2215 | * The MSI-X interrupt handler for an SGE response queue for the NAPI case | 2215 | * The MSI-X interrupt handler for an SGE response queue for the NAPI case |
2216 | * (i.e., response queue serviced by NAPI polling). | 2216 | * (i.e., response queue serviced by NAPI polling). |
2217 | */ | 2217 | */ |
2218 | irqreturn_t t3_sge_intr_msix_napi(int irq, void *cookie) | 2218 | static irqreturn_t t3_sge_intr_msix_napi(int irq, void *cookie) |
2219 | { | 2219 | { |
2220 | struct sge_qset *qs = cookie; | 2220 | struct sge_qset *qs = cookie; |
2221 | struct sge_rspq *q = &qs->rspq; | 2221 | struct sge_rspq *q = &qs->rspq; |
@@ -2284,7 +2284,7 @@ static int rspq_check_napi(struct sge_qset *qs) | |||
2284 | * one SGE response queue per port in this mode and protect all response | 2284 | * one SGE response queue per port in this mode and protect all response |
2285 | * queues with queue 0's lock. | 2285 | * queues with queue 0's lock. |
2286 | */ | 2286 | */ |
2287 | irqreturn_t t3_intr_msi_napi(int irq, void *cookie) | 2287 | static irqreturn_t t3_intr_msi_napi(int irq, void *cookie) |
2288 | { | 2288 | { |
2289 | int new_packets; | 2289 | int new_packets; |
2290 | struct adapter *adap = cookie; | 2290 | struct adapter *adap = cookie; |