Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI/AER: Change pci_aer_init() stub to return void

Commit 60ed982a4e78 ("PCI/AER: Move internal declarations to
drivers/pci/pci.h") changed pci_aer_init() to return "void", but didn't
change the stub for when CONFIG_PCIEAER isn't enabled. Change the stub to
match.

Fixes: 60ed982a4e78 ("PCI/AER: Move internal declarations to drivers/pci/pci.h")
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org # v4.19+

authored by

Jisheng Zhang and committed by
Bjorn Helgaas
31f996ef 9e98c678

+1 -1
+1 -1
drivers/pci/pci.h
··· 596 596 void pci_aer_clear_device_status(struct pci_dev *dev); 597 597 #else 598 598 static inline void pci_no_aer(void) { } 599 - static inline int pci_aer_init(struct pci_dev *d) { return -ENODEV; } 599 + static inline void pci_aer_init(struct pci_dev *d) { } 600 600 static inline void pci_aer_exit(struct pci_dev *d) { } 601 601 static inline void pci_aer_clear_fatal_status(struct pci_dev *dev) { } 602 602 static inline void pci_aer_clear_device_status(struct pci_dev *dev) { }