Commit 65b3bc35 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Greg Kroah-Hartman

PCI aer: fix stub return values

The stubs used when advanced error reporting is not enabled
must have same return type as real functions.
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Acked-by: default avatarZhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8d29bfb7
...@@ -14,10 +14,10 @@ extern int pci_find_aer_capability(struct pci_dev *dev); ...@@ -14,10 +14,10 @@ extern int pci_find_aer_capability(struct pci_dev *dev);
extern int pci_disable_pcie_error_reporting(struct pci_dev *dev); extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
#else #else
#define pci_enable_pcie_error_reporting(dev) do { } while (0) #define pci_enable_pcie_error_reporting(dev) (-EINVAL)
#define pci_find_aer_capability(dev) do { } while (0) #define pci_find_aer_capability(dev) (0)
#define pci_disable_pcie_error_reporting(dev) do { } while (0) #define pci_disable_pcie_error_reporting(dev) (-EINVAL)
#define pci_cleanup_aer_uncorrect_error_status(dev) do { } while (0) #define pci_cleanup_aer_uncorrect_error_status(dev) (-EINVAL)
#endif #endif
#endif //_AER_H_ #endif //_AER_H_
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment