sfc: make local functions static
Subsystems (3)
PATCH 1/1 sfc: make local functions static
Trivial sparse detected functions that should be static.
Signed-off-by Stephen Hemminger <[email protected]>
drivers/net/ethernet/sfc/efx.c +3 -3
@@ -2950,8 +2950,8 @@ static const struct dev_pm_ops efx_pm_op* 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(s }/* 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 ;
drivers/net/ethernet/sfc/rx.c +2 -2
@@ -666,8 +666,8 @@ int efx_probe_rx_queue(struct efx_rx_quereturn 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;
From: Stephen Hemminger <[email protected]>
Date: Sat, 16 Mar 2013 09:57:51 -0700
Quoted 3 lines
Trivial sparse detected functions that should be static.
Signed-off-by Stephen Hemminger <[email protected]>
Applied, thanks Stephen.
Quoted 8 lines · David Miller
From: Stephen Hemminger <[email protected]>
Date: Sat, 16 Mar 2013 09:57:51 -0700Quoted 3 lines
Trivial sparse detected functions that should be static.
Signed-off-by Stephen Hemminger <[email protected]>Applied, thanks Stephen.
Thanks.
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.