summaryrefslogtreecommitdiff
path: root/include/linux/aer.h
diff options
context:
space:
mode:
authorTyler Baicar <tbaicar@codeaurora.org>2016-09-14 15:14:45 -0600
committerBjorn Helgaas <bhelgaas@google.com>2016-09-20 14:35:59 -0500
commit95c35491f663962e476179076d24d0d2c45a8fb5 (patch)
treeb0f52b2559fcd4dfda769a49db3b1a91fb8499b6 /include/linux/aer.h
parent7ece14175376051b18a9b97f0e6125cb8b864155 (diff)
PCI/AER: Remove duplicate AER severity translation
Currently the AER severity is being translated twice in the code flow for PCIe errors. It is first translated in ghes_do_proc() before calling into the AER driver. Then it is translated again when the AER driver calls cper_print_aer(). This causes the severity that is used in cper_print_aer() to be incorrect. Remove the second translation that is in cper_print_aer() since this function is already receiving the correct AER severity. Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'include/linux/aer.h')
-rw-r--r--include/linux/aer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/aer.h b/include/linux/aer.h
index 164049357e5c..04602cbe85dc 100644
--- a/include/linux/aer.h
+++ b/include/linux/aer.h
@@ -63,7 +63,7 @@ static inline int pci_cleanup_aer_error_status_regs(struct pci_dev *dev)
}
#endif
-void cper_print_aer(struct pci_dev *dev, int cper_severity,
+void cper_print_aer(struct pci_dev *dev, int aer_severity,
struct aer_capability_regs *aer);
int cper_severity_to_aer(int cper_severity);
void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn,