diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-03-16 02:57:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-17 14:26:40 -0400 |
commit | debd0034de1f68585ab5d1d3d693d38f19d48e5d (patch) | |
tree | 11dd9b2f7db11b23ee3906c1c11c80aa279dffc8 | |
parent | a362db3d6c8a952cbde510b1fa35d0ee001b347e (diff) |
sfc: make local functions static
Trivial sparse detected functions that should be static.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/sfc/rx.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 78c33249a21b..01b99206139a 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c | |||
@@ -2950,8 +2950,8 @@ static const struct dev_pm_ops efx_pm_ops = { | |||
2950 | * At this point MMIO and DMA may be disabled. | 2950 | * At this point MMIO and DMA may be disabled. |
2951 | * Stop the software path and request a slot reset. | 2951 | * Stop the software path and request a slot reset. |
2952 | */ | 2952 | */ |
2953 | pci_ers_result_t efx_io_error_detected(struct pci_dev *pdev, | 2953 | static pci_ers_result_t efx_io_error_detected(struct pci_dev *pdev, |
2954 | enum pci_channel_state state) | 2954 | enum pci_channel_state state) |
2955 | { | 2955 | { |
2956 | pci_ers_result_t status = PCI_ERS_RESULT_RECOVERED; | 2956 | pci_ers_result_t status = PCI_ERS_RESULT_RECOVERED; |
2957 | struct efx_nic *efx = pci_get_drvdata(pdev); | 2957 | struct efx_nic *efx = pci_get_drvdata(pdev); |
@@ -2986,7 +2986,7 @@ pci_ers_result_t efx_io_error_detected(struct pci_dev *pdev, | |||
2986 | } | 2986 | } |
2987 | 2987 | ||
2988 | /* Fake a successfull reset, which will be performed later in efx_io_resume. */ | 2988 | /* Fake a successfull reset, which will be performed later in efx_io_resume. */ |
2989 | pci_ers_result_t efx_io_slot_reset(struct pci_dev *pdev) | 2989 | static pci_ers_result_t efx_io_slot_reset(struct pci_dev *pdev) |
2990 | { | 2990 | { |
2991 | struct efx_nic *efx = pci_get_drvdata(pdev); | 2991 | struct efx_nic *efx = pci_get_drvdata(pdev); |
2992 | pci_ers_result_t status = PCI_ERS_RESULT_RECOVERED; | 2992 | pci_ers_result_t status = PCI_ERS_RESULT_RECOVERED; |
diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c index a948b36c1910..e73e30bac10e 100644 --- a/drivers/net/ethernet/sfc/rx.c +++ b/drivers/net/ethernet/sfc/rx.c | |||
@@ -666,8 +666,8 @@ int efx_probe_rx_queue(struct efx_rx_queue *rx_queue) | |||
666 | return rc; | 666 | return rc; |
667 | } | 667 | } |
668 | 668 | ||
669 | void efx_init_rx_recycle_ring(struct efx_nic *efx, | 669 | static void efx_init_rx_recycle_ring(struct efx_nic *efx, |
670 | struct efx_rx_queue *rx_queue) | 670 | struct efx_rx_queue *rx_queue) |
671 | { | 671 | { |
672 | unsigned int bufs_in_recycle_ring, page_ring_size; | 672 | unsigned int bufs_in_recycle_ring, page_ring_size; |
673 | 673 | ||