]> err.no Git - linux-2.6/commitdiff
PCI aer: fix stub return values
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 6 Jun 2007 03:46:49 +0000 (11:46 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:02:08 +0000 (16:02 -0700)
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>
include/linux/aer.h

index 402e178b38ebd3dcc999c15b9d90b9c52769de32..64aacaed8d6c0c0e780c713aa3f1286d31b9a690 100644 (file)
@@ -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_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
 #else
-#define pci_enable_pcie_error_reporting(dev)           do { } while (0)
-#define pci_find_aer_capability(dev)                   do { } while (0)
-#define pci_disable_pcie_error_reporting(dev)          do { } while (0)
-#define pci_cleanup_aer_uncorrect_error_status(dev)    do { } while (0)
+#define pci_enable_pcie_error_reporting(dev)           (-EINVAL)
+#define pci_find_aer_capability(dev)                   (0)
+#define pci_disable_pcie_error_reporting(dev)          (-EINVAL)
+#define pci_cleanup_aer_uncorrect_error_status(dev)    (-EINVAL)
 #endif
 
 #endif //_AER_H_