PCI/AER: Move aer_irq() declaration to portdrv.h
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 8 Jun 2018 13:40:25 +0000 (08:40 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Mon, 11 Jun 2018 13:11:18 +0000 (08:11 -0500)
The aer_irq() declaration is the only thing needed by aer_inject.c.  Move
it to portdrv.h so we eventually get rid of aerdrv.h completely.  No
functional change intended.

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

index a49090935303c236b8d85a476c1209bd13d21929..6c5fda96778a0b57949679e609f8fcbc0ace08dd 100644 (file)
@@ -21,7 +21,8 @@
 #include <linux/uaccess.h>
 #include <linux/stddef.h>
 #include <linux/device.h>
-#include "aerdrv.h"
+
+#include "../portdrv.h"
 
 /* Override the existing corrected and uncorrected error masks */
 static bool aer_mask_override;
index b0c4aaa79d9cdb08998d2dede26b8bc3a9816ff0..9867950635df99c95eb323bd4359480a2aebfbab 100644 (file)
@@ -76,6 +76,4 @@ struct aer_rpc {
                                         */
 };
 
-irqreturn_t aer_irq(int irq, void *context);
-
 #endif /* _AERDRV_H_ */
index 6a261dc7cd4c9c8dab2841cacd11c32b45191891..6ffc797a0dc1c9a25004be6b0da94727a4956aba 100644 (file)
@@ -121,6 +121,10 @@ static inline int pcie_aer_get_firmware_first(struct pci_dev *pci_dev)
 }
 #endif
 
+#ifdef CONFIG_PCIEAER
+irqreturn_t aer_irq(int irq, void *context);
+#endif
+
 struct pcie_port_service_driver *pcie_port_find_service(struct pci_dev *dev,
                                                        u32 service);
 struct device *pcie_port_find_device(struct pci_dev *dev, u32 service);