diff options
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv_core.c | 3 | ||||
-rw-r--r-- | include/linux/aer.h | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 3c0d8d138f5a..e84dfc8be0e9 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c | |||
@@ -117,6 +117,7 @@ int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) | |||
117 | return 0; | 117 | return 0; |
118 | } | 118 | } |
119 | 119 | ||
120 | #if 0 | ||
120 | int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) | 121 | int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) |
121 | { | 122 | { |
122 | int pos; | 123 | int pos; |
@@ -131,6 +132,7 @@ int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) | |||
131 | 132 | ||
132 | return 0; | 133 | return 0; |
133 | } | 134 | } |
135 | #endif /* 0 */ | ||
134 | 136 | ||
135 | static int find_device_iter(struct device *device, void *data) | 137 | static int find_device_iter(struct device *device, void *data) |
136 | { | 138 | { |
@@ -757,5 +759,4 @@ EXPORT_SYMBOL_GPL(pci_find_aer_capability); | |||
757 | EXPORT_SYMBOL_GPL(pci_enable_pcie_error_reporting); | 759 | EXPORT_SYMBOL_GPL(pci_enable_pcie_error_reporting); |
758 | EXPORT_SYMBOL_GPL(pci_disable_pcie_error_reporting); | 760 | EXPORT_SYMBOL_GPL(pci_disable_pcie_error_reporting); |
759 | EXPORT_SYMBOL_GPL(pci_cleanup_aer_uncorrect_error_status); | 761 | EXPORT_SYMBOL_GPL(pci_cleanup_aer_uncorrect_error_status); |
760 | EXPORT_SYMBOL_GPL(pci_cleanup_aer_correct_error_status); | ||
761 | 762 | ||
diff --git a/include/linux/aer.h b/include/linux/aer.h index bcf236d825e8..f2518141de88 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h | |||
@@ -13,7 +13,6 @@ extern int pci_enable_pcie_error_reporting(struct pci_dev *dev); | |||
13 | extern int pci_find_aer_capability(struct pci_dev *dev); | 13 | extern int pci_find_aer_capability(struct pci_dev *dev); |
14 | extern int pci_disable_pcie_error_reporting(struct pci_dev *dev); | 14 | extern int pci_disable_pcie_error_reporting(struct pci_dev *dev); |
15 | extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); | 15 | extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); |
16 | extern int pci_cleanup_aer_correct_error_status(struct pci_dev *dev); | ||
17 | #else | 16 | #else |
18 | static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev) | 17 | static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev) |
19 | { | 18 | { |
@@ -31,10 +30,6 @@ static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) | |||
31 | { | 30 | { |
32 | return -EINVAL; | 31 | return -EINVAL; |
33 | } | 32 | } |
34 | static inline int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) | ||
35 | { | ||
36 | return -EINVAL; | ||
37 | } | ||
38 | #endif | 33 | #endif |
39 | 34 | ||
40 | #endif //_AER_H_ | 35 | #endif //_AER_H_ |