PCI/AER: Remove forward declarations
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 8 Jun 2018 13:31:42 +0000 (08:31 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 8 Jun 2018 13:31:42 +0000 (08:31 -0500)
Reorder code to remove forward declarations.  No functional change
intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
drivers/pci/pcie/aer/aerdrv.c

index 9735c19bf39cf5bc0b8e8d06627f2cc243a1998b..c6d1b664a6ea28d396982a353d6af7e552b7b6df 100644 (file)
 #include "aerdrv.h"
 #include "../../pci.h"
 
-static int aer_probe(struct pcie_device *dev);
-static void aer_remove(struct pcie_device *dev);
-static void aer_error_resume(struct pci_dev *dev);
-static pci_ers_result_t aer_root_reset(struct pci_dev *dev);
-
-static struct pcie_port_service_driver aerdriver = {
-       .name           = "aer",
-       .port_type      = PCI_EXP_TYPE_ROOT_PORT,
-       .service        = PCIE_PORT_SERVICE_AER,
-
-       .probe          = aer_probe,
-       .remove         = aer_remove,
-       .error_resume   = aer_error_resume,
-       .reset_link     = aer_root_reset,
-};
-
 static int pcie_aer_disable;
 
 void pci_no_aer(void)
@@ -357,6 +341,17 @@ static void aer_error_resume(struct pci_dev *dev)
        pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, status);
 }
 
+static struct pcie_port_service_driver aerdriver = {
+       .name           = "aer",
+       .port_type      = PCI_EXP_TYPE_ROOT_PORT,
+       .service        = PCIE_PORT_SERVICE_AER,
+
+       .probe          = aer_probe,
+       .remove         = aer_remove,
+       .error_resume   = aer_error_resume,
+       .reset_link     = aer_root_reset,
+};
+
 /**
  * aer_service_init - register AER root service driver
  *