aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-06-05 23:46:49 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-11 19:02:08 -0400
commit65b3bc358a3195ebe459761a248cf33a61539947 (patch)
tree1d0a19af0319393a1517a6e3f6922a3be2caecd0 /include/linux
parent8d29bfb79e632fe318f4c01c9c2e8faacb89b800 (diff)
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: Stephen Hemminger <shemminger@linux-foundation.org> Acked-by: Zhang Yanmin <yanmin.zhang@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/aer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/aer.h b/include/linux/aer.h
index 402e178b38eb..64aacaed8d6c 100644
--- a/include/linux/aer.h
+++ b/include/linux/aer.h
@@ -14,10 +14,10 @@ extern int pci_find_aer_capability(struct pci_dev *dev);
14extern int pci_disable_pcie_error_reporting(struct pci_dev *dev); 14extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
15extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); 15extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
16#else 16#else
17#define pci_enable_pcie_error_reporting(dev) do { } while (0) 17#define pci_enable_pcie_error_reporting(dev) (-EINVAL)
18#define pci_find_aer_capability(dev) do { } while (0) 18#define pci_find_aer_capability(dev) (0)
19#define pci_disable_pcie_error_reporting(dev) do { } while (0) 19#define pci_disable_pcie_error_reporting(dev) (-EINVAL)
20#define pci_cleanup_aer_uncorrect_error_status(dev) do { } while (0) 20#define pci_cleanup_aer_uncorrect_error_status(dev) (-EINVAL)
21#endif 21#endif
22 22
23#endif //_AER_H_ 23#endif //_AER_H_