sfc: make local functions static
authorstephen hemminger <stephen@networkplumber.org>
Sat, 16 Mar 2013 06:57:51 +0000 (06:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Mar 2013 18:26:40 +0000 (14:26 -0400)
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>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/rx.c

index 78c33249a21b9b220b8bdba529878cc2f64242a3..01b99206139a0acefeb9452ad62b55346c6278f6 100644 (file)
@@ -2950,8 +2950,8 @@ static const struct dev_pm_ops efx_pm_ops = {
  * At this point MMIO and DMA may be disabled.
  * Stop the software path and request a slot reset.
  */
-pci_ers_result_t efx_io_error_detected(struct pci_dev *pdev,
-                                      enum pci_channel_state state)
+static pci_ers_result_t efx_io_error_detected(struct pci_dev *pdev,
+                                             enum pci_channel_state state)
 {
        pci_ers_result_t status = PCI_ERS_RESULT_RECOVERED;
        struct efx_nic *efx = pci_get_drvdata(pdev);
@@ -2986,7 +2986,7 @@ pci_ers_result_t efx_io_error_detected(struct pci_dev *pdev,
 }
 
 /* Fake a successfull reset, which will be performed later in efx_io_resume. */
-pci_ers_result_t efx_io_slot_reset(struct pci_dev *pdev)
+static pci_ers_result_t efx_io_slot_reset(struct pci_dev *pdev)
 {
        struct efx_nic *efx = pci_get_drvdata(pdev);
        pci_ers_result_t status = PCI_ERS_RESULT_RECOVERED;
index a948b36c191088cc880096e00aa754b2cd36292a..e73e30bac10e268a6f031d717a3551cda1ddeeae 100644 (file)
@@ -666,8 +666,8 @@ int efx_probe_rx_queue(struct efx_rx_queue *rx_queue)
        return rc;
 }
 
-void efx_init_rx_recycle_ring(struct efx_nic *efx,
-                             struct efx_rx_queue *rx_queue)
+static void efx_init_rx_recycle_ring(struct efx_nic *efx,
+                                    struct efx_rx_queue *rx_queue)
 {
        unsigned int bufs_in_recycle_ring, page_ring_size;