diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2018-06-08 09:40:25 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-06-11 09:11:18 -0400 |
| commit | f53e7418c3402a2589216997d7cd07d3b0be497e (patch) | |
| tree | b69888c0e464a9d9b0adc7492e29de5aa6e35bab | |
| parent | 0544b04b792696d6e408f3a882d1a36943084fa8 (diff) | |
PCI/AER: Move aer_irq() declaration to portdrv.h
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>
| -rw-r--r-- | drivers/pci/pcie/aer/aer_inject.c | 3 | ||||
| -rw-r--r-- | drivers/pci/pcie/aer/aerdrv.h | 2 | ||||
| -rw-r--r-- | drivers/pci/pcie/portdrv.h | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c index a49090935303..6c5fda96778a 100644 --- a/drivers/pci/pcie/aer/aer_inject.c +++ b/drivers/pci/pcie/aer/aer_inject.c | |||
| @@ -21,7 +21,8 @@ | |||
| 21 | #include <linux/uaccess.h> | 21 | #include <linux/uaccess.h> |
| 22 | #include <linux/stddef.h> | 22 | #include <linux/stddef.h> |
| 23 | #include <linux/device.h> | 23 | #include <linux/device.h> |
| 24 | #include "aerdrv.h" | 24 | |
| 25 | #include "../portdrv.h" | ||
| 25 | 26 | ||
| 26 | /* Override the existing corrected and uncorrected error masks */ | 27 | /* Override the existing corrected and uncorrected error masks */ |
| 27 | static bool aer_mask_override; | 28 | static bool aer_mask_override; |
diff --git a/drivers/pci/pcie/aer/aerdrv.h b/drivers/pci/pcie/aer/aerdrv.h index b0c4aaa79d9c..9867950635df 100644 --- a/drivers/pci/pcie/aer/aerdrv.h +++ b/drivers/pci/pcie/aer/aerdrv.h | |||
| @@ -76,6 +76,4 @@ struct aer_rpc { | |||
| 76 | */ | 76 | */ |
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | irqreturn_t aer_irq(int irq, void *context); | ||
| 80 | |||
| 81 | #endif /* _AERDRV_H_ */ | 79 | #endif /* _AERDRV_H_ */ |
diff --git a/drivers/pci/pcie/portdrv.h b/drivers/pci/pcie/portdrv.h index 6a261dc7cd4c..6ffc797a0dc1 100644 --- a/drivers/pci/pcie/portdrv.h +++ b/drivers/pci/pcie/portdrv.h | |||
| @@ -121,6 +121,10 @@ static inline int pcie_aer_get_firmware_first(struct pci_dev *pci_dev) | |||
| 121 | } | 121 | } |
| 122 | #endif | 122 | #endif |
| 123 | 123 | ||
| 124 | #ifdef CONFIG_PCIEAER | ||
| 125 | irqreturn_t aer_irq(int irq, void *context); | ||
| 126 | #endif | ||
| 127 | |||
| 124 | struct pcie_port_service_driver *pcie_port_find_service(struct pci_dev *dev, | 128 | struct pcie_port_service_driver *pcie_port_find_service(struct pci_dev *dev, |
| 125 | u32 service); | 129 | u32 service); |
| 126 | struct device *pcie_port_find_device(struct pci_dev *dev, u32 service); | 130 | struct device *pcie_port_find_device(struct pci_dev *dev, u32 service); |
